jeferson-sb / dogAI

Dog breed image recognition with Teachable Machine & Tensorflow.js
https://dogai.netlify.app
MIT License
18 stars 10 forks source link

Bump @tensorflow/tfjs from 1.7.4 to 2.0.0 #27

Closed dependabot-preview[bot] closed 4 years ago

dependabot-preview[bot] commented 4 years ago

Bumps @tensorflow/tfjs from 1.7.4 to 2.0.0.

Release notes

Sourced from @tensorflow/tfjs's releases.

TensorFlow.js 2.0.0

TensorFlow.js 2.0.0 is here! It is available on NPM as well as CDNs that sync from NPM.

It contains a few breaking changes, details of which are listed below, but at a high level these are some of the major changes in this release:

  • The CPU and WebGL backends have moved out of tfjs-core into their own packages. tfjs-backend-cpu and tfjs-backend-webgl.
    • 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:
    • tf.min.js & tf.es2017.min.js
    • tf-core.min.js & tf-core.es2017.min.js
    • tf-backend-cpu.min.js & tf-backend-cpu.es2017.min.js
    • tf-backend-webgl.min.js & tf-backend-webgl.es2017.min.js
    • tf-layers.min.js & tf-layers.es2017.min.js
    • tf-converter.min.js & tf-converter.es2017.min.js
      • tf-data.min.js & tf-data.es2017.min.js
  • 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.

Core (1.7.4 ==> 2.0.0)

Features

  • [wasm] Add split, sqrt kernels. (#3183).

Breaking changes

  • Remove deprecated batchnormalization op (#3238).
  • Update packages to compile to ESM modules by default (#3112).
  • move webgl backend out of core (#3056).
  • Move cpu backend out of tfjs-core (#3008).

Bug fixes

  • [[core] Restrict size of conv test output to temporarily fix precision issues in Safari.] (#3187).
  • [[core] Change inputs to matMul test to avoid precision issues in Safari as stopgap.] (#3142).
  • fix nightly error on isMobile (#3139).
  • [webgpu] Fix dilation and add stride 2 filter 3x3 same conv2d… (#2846). Thanks, @axinging.
  • ensure isMobile() does not fail when navigator is not set. [ensure isMobile() does not fail when navigator is not set] (#3075).
  • [core] Fix toPixels memLeak for TensorLike inputs. (#3073).
  • Remove duplicate declaration. ([#3030](https://github.com/
  • use the loadOptions to find the IOHandler (#3286).tensorflow/tfjs/pull/3030)).
  • [[core] Restrict size of conv test output to temporarily fix precision issues in Safari.] (#3187).
  • [[core] Change inputs to matMul test to avoid precision issues in Safari as stopgap.] (#3142).
  • [core] Fix toPixels memLeak for TensorLike inputs. (#3073).

Development

  • deprecate strict variants of ops (#3239).
  • Add license to pad3d.ts. [Add license.] (#3027).
  • Modularize max. (#2955).
... (truncated)
Commits
Maintainer changes

This version was pushed to npm by tafsiri, a new releaser for @tensorflow/tfjs since your current version.


Dependabot compatibility score

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)
dependabot-preview[bot] commented 4 years ago

Superseded by #30.