Commit Graph

22 Commits

Author SHA1 Message Date
dependabot[bot] ca2d0f3d28
build(deps): bump minimatch from 3.0.4 to 3.1.2 in /link-package (#7096)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-23 13:06:24 -08:00
Matthew Soulanille d9f74555f0
Make link-package's build-deps-for script check transitive deps (#6712)
Make build-deps-for check for Bazel dependencies transitively instead of just on the packages passed to it. Additionally, change the behavior of `build-deps-for` so that when it is passed a Bazel package, it will directly build the package instead of building just its dependencies.

Co-authored-by: Linchenn <40653845+Linchenn@users.noreply.github.com>
2022-08-03 11:24:08 -07:00
Matthew Soulanille 87416db23d
Upgrade @bazel/bazelisk and @bazel/ibazel (#6565) 2022-06-27 12:28:19 -07:00
Matthew Soulanille 11b3fb5073
Make link package reference scripts/bazel_packages.ts (#6510) 2022-06-09 11:18:46 -07:00
Matthew Soulanille 0a9fdbd450
Build link package with remote cache access in CI (#6511)
* Add option to pass bazel options when building link package

* Build link package with remote cache in CI

* Update cloudbuild golden files
2022-06-08 21:10:25 -07:00
Matthew Soulanille f471f97836
Improve link_package speed (#6376)
Improve link_package speed by only building the dependencies that are required and by building them all in a single bazel build command.

Remove the link_package_core package, which is no longer needed now that link_package can build just the required dependencies.
2022-05-10 17:06:05 -07:00
Hao Yunfei 75be6d9e11
Add tfjs-backend-webgpu npm link dependency (#6272)
Co-authored-by: Matthew Soulanille <msoulanille@google.com>
2022-04-06 23:29:45 -07:00
Ping Yu b73ea50312
[security] upgrade parcel-bundle to parcel 2 (#6234)
SECURITY
* upgrade parcel-bundle to parcel 2

* fix tfjs-vis tests
2022-03-15 17:33:22 -07:00
Hao Yunfei e34d7c3b74
Build tfjs-backend-webgpu with Bazel (#5362)
DEV
INTERNAL
* Build tfjs-backend-webgpu with Bazel

* update

* bazel format

* use node:11 for yarn test-ci

* Revert "use node:11 for yarn test-ci"

This reverts commit 46b2e6ddd2f7afb08e402a4d534b4371bb007be5.

* add bazel test and test-dev

* update commands in package.json

* rebase

* bazel lint

* update setup_test structure

* save

* Use central `yarn lint` instead of mono webgpu backend

* Make WebGPU local testing run chrome with flag

* update yarn.lock

* bazel format

* skip browserstack testing for WebGPU

* update dependency

* Address comments

* lint

* lint

* update tsconfig.test.json

* Address Matt's comments
2021-11-12 11:22:05 -08:00
Ping Yu 1707ea512e
[tfjs-data] Bazel migration for tfjs-data (#5748)
* init build file

* migrate tfjs-data to bazel

* fix tests

* skip mediaDevices tests if it is null

* test on chrome only

* addressed comments

* fix typo

* fixed snippet tests
2021-10-21 11:33:16 -07:00
Jing Jin 7313d7a09e
[tflite] Fix the broken demo (#5732)
The demo was broken because the wasm files (from the tfjs-tflie package) were not copied to the build target directory so the demo cannot load the wasm loader/binary (server would return a 404 html page).

This PR added the missing staticFiles object to package.json in order to specify which source directory to copy files from to the build target directory (dist/). This functionality is supported by the parcel-plugin-static-files-copy npm package which is already there.
2021-10-18 09:49:42 -07:00
Ping Yu ed94a27288
[tfjs-layers] Bazel migration (#5672)
FEATURE
INTERNAL
* add more bazel build files

* remove the integration test directory

* enumerate tests

* require tests files

* fix tests

* fixed spyOn test errors

* fix more tests

* keep function name for esbuild

* fix more tests

* allow random flag for jasmine test

* updated deps

* merged

* fixed bazel lint

* fixed layers snippet tests

* fixed tests

* fix test failure

* fix bazel tests

* addressed comments

* addressed comments

* fix test

* fix bazel failure
2021-09-30 22:50:20 -07:00
Jing Jin 7204a86a67
[wasm] Fix kernels in wasm backend about how int32 inputs are handled (#5662)
* Handle int32

* fix

* address comments
2021-09-29 15:17:13 -07:00
Matthew Soulanille 2a7ce55363
[webgl] Build tfjs-backend-webgl with Bazel (#5562)
PROCESS
2021-09-22 10:03:32 -07:00
Jing Jin 86d89eef18
[tflite] Update README and fix demo (#5545) 2021-09-02 10:00:11 -07:00
Ping Yu 0815ff27d7
[tfjs-converter] Bazel build migration (#5388)
FEATURE
INTERNAL
* init check in for converter bazel migration

* fixed build failure

* fix test target error

* tests are passing

* added test_snippets target

* add gen_json rule

* create gen-json bazel rule

* added build rules for converter pyton package

* added python runtimes and update pip test script

* fixed dupe deps

* updated cloud build

* fixed bazel lint error

* fix test generated cloudbuild

* use bazel installed python interpreter for pip_install;

* fix bazel format

* fix pip test

* update converter npm link

* add link package for tfjs-converter

* Generate converter files needed for the build with Bazel (#5393)


* Generate .ts op files from json

* Generate kernel2op with bazel

* Remove console.logs

* Bazel lint

* Build all ops with a single target

* Update contributing missing op readme

* Bazel lint

* fixed converter python tests

* fix failed test

* Update converter entrypoints (#5395)


* Update converter entrypoints

* Add converter to 'reinstall' in link-package

* fixed tfjs union package test

* remove gen_json rule

* fix bazel lint

* fix lint

* Add kernel2ops to converter pkg (#5399)

* Add kernel2ops to converter pkg

* remove copy metadata target

* disable python toolchain registration

* added py toolchain back

* update th link package

* remove numpy requirement

* disable python runtime registration

* register the python runtimes

* update the make-version script to update the python BUILD file for the package.json version

* updated converter nightly test cloud build

* fixed the cloud build file

* build the wheel in the test script

* use root dir

* fixed tests

* fixes

* update iamge

* fix yml

* revert

* fixed cloudbuild test

* list the pip files

* update cloudbuild

* cp instead of mv

* adding more log

* update log

* update log

* update log

* Use a different symlink prefix for wasm builds (#5455)

FEATURE

* removed debug logging

* limit numpy version

* increase nightly time limit

* added converter to bazel packages

* address the comments

* fixed js and python tests

* addressed comments

* fixed build file test

* fix bazel format

* fix typo

* fix tfjs tool test

Co-authored-by: Matthew Soulanille <msoulanille@google.com>
2021-08-31 14:00:44 -07:00
Matthew Soulanille 178ca0568a
Revert "Build tfjs-backend-webgl with Bazel (#5339)" (#5476)
This reverts commit 86ad5e0 and resolves conflicts. The WebGL Bazel PR had an issue that wasn't caught in code review (my bad!) that prevents tests from running correctly. Reverting it for now is likely the fastest way to unblock the next release.

Fixes #5418
Reopens #5277
2021-08-12 15:49:59 -07:00
Matthew Soulanille 9a2bbc3e44
Create a separate 'link-package-core' for packages that only need core (#5436)
BUG
2021-08-05 11:18:16 -07:00
Jiajia Qin a2ac9d0518
Fix the typo webgo->webgl (#5419) 2021-08-03 07:36:08 -07:00
Jing Jin 6bfe297f01
Migrate tfjs-tflite package to bazel (#5358)
* save

* save

* save

* save

* save

* save

* save

* save

* fix

* fix
2021-08-02 16:02:01 -07:00
ahmedsabie 86ad5e0ab6
Build tfjs-backend-webgl with Bazel (#5339)
* Build tfjs-backend-webgl with Bazel

* Remove tfjs-backend-webgl from package_dependencies

* Remove nodejs test

* fix lint

* Update downstream dependencies

* Rename main and module in package.json

* Add webgl backend test target
2021-07-23 15:35:07 -04:00
Matthew Soulanille e745d42cae
Use Bazel and ts_library to build core and backend-cpu (#5133)
This PR builds tfjs-core and tfjs-backend-cpu using Bazel and makes the build outputs available to the other packages in the monorepo. It also sets up Bazel rules and macros that facilitate converting other packages in the monorepo to Bazel. For more details, see #5133.
2021-07-15 14:50:45 -07:00