If you are not using the union package (i.e. you use tfjs-core, tfjs-layers, tfjs-converter, tfjs-data directly) you need to import these backends into your application to get the same behavior as before, or you can only import a single backend if that is all you need.
If you use the union package (i.e. tfjs), then nothing will need to change in your code as these backends are already included.
In some situations (e.g. running certain ops with small tensors) the WebGL backend can optionally fall back to the CPU backend, to keep this behavior, for those not using the union package you should include both the cpu and webgl backend in your application. We are working towards saving you this step in 3.x. If you primarily rely on the WebGL backend, you should test the performance with and without the CPU backend present and make the appropriate decision of what to include.
In addition to our ES5 bundles, we are shipping new pre-compiled bundles with ES modules and ES2017 code:
Our 'module' entry in package.json points to files with ES modules and ES2017 code. These are individual files corresponding to the source code of our libraries. This lays down a path to enable tree shaking and smaller bundles in apps.
If you have previously been using the files in the 'dist' subfolder of our NPM package, you may need to adjust your build system to consume them.
Functionality that was deprecated in 1.x has been removed.
In 2.x we are deprecating all the '*Strict' variants of ops. e.g. divStrict and mulStrict.
This version was pushed to npm by tafsiri, a new releaser for @tensorflow/tfjs since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps @tensorflow/tfjs from 1.7.4 to 2.0.0.
Release notes
Sourced from @tensorflow/tfjs's releases.
Commits
30b1b4d
Update tfjs to 2.0.0. (#3328)21ee5e3
Update tfjs-data to 2.0.0. (#3327)3688c73
Update tfjs-layers, tfjs-converter to 2.0.0, 2.0.0. (#3325)629fa9f
Update tfjs-backend-webgl to 2.0.0. (#3324)898035c
Update tfjs-backend-cpu to 2.0.0. (#3323)e158ef8
Update tfjs-core to 2.0.0. (#3322)c80e205
fix: only one, direct return (#3317)83e6d22
fix: typedarray perf (#3316)04e2c57
Start moving integration tests to top level folder. Introduce a tag mechanism...83c9ae8
Update react native docs (#3292)Maintainer changes
This version was pushed to npm by tafsiri, a new releaser for @tensorflow/tfjs since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)