github tensorflow/tfjs v1.1.0
1.1.0

latest releases: tfjs-v4.19.0, tfjs-v4.19.0-rc.0, tfjs-v4.18.0...
5 years ago

High-level additions

  • HTTP requests for models is now stable in browser / Node.js. You can use tf.util.fetch() for cross-platform fetch.
  • Layers new layers: Conv3D, Noise
  • Started development on a WebGPU backend. This is a preliminary prototype and will not be added to tfjs-core until it is stable and lands in all browsers.

Core (v1.0.1 ==> v1.1.0)

Features

  • Upgrade and typify @webgpu/shaderc, add @webgpu/types (#1679).
  • Add WebGPU backend. (#1676).
  • Add tf.util.fetch. (#1663).
  • implement isNaN, isInf, isFinite (#1523). Thanks, @AndreasMadsen.
  • use the env.global for looking up fetch method (#1544).
  • Support complex type in onesLike. (#1609). Thanks, @Lewuathe.

Bug fixes

  • Don't register the webgl backend outside the browser. (#1662).
  • Revive packed division - add out of bounds check. (#1660).
  • Fix a bug with slice in webgl backend (#1655).
  • Fix windows tests and enable browserstack on windows (#1651).
  • Fix integer division on windows (D3D) (#1646).
  • Make the save function in a gradient be a Tensor[] instead of a NamedTensorMap (#1644).
  • Save tensor x in forward mode when zerosLike(x) is used in backward mode (#1636).
  • Export types used in tfjs-data (#1626).
  • Improve disposal of tensors during training (#1604).

Performance

  • Optimize addN op by the multiple upload of textures (#1538). Thanks, @Lewuathe.
  • Revive packed division - add out of bounds check. (#1660).
  • implement isNaN, isInf, isFinite (#1523). Thanks, @AndreasMadsen.
  • Modify im2col to use packed texture inputs. (#1640).
  • Speedup the WebGL tests by 2.5x (#1625).
  • Packed reverse (#1617). Thanks, @jgartman.
  • Improve disposal of tensors during training (#1604).
  • Optimize tf.tidy() and tf.keep(). (#1621).

Development

  • Add nightly cloud build (#1674).
  • Add a script to measure the bundle size. (#1666).
  • Update rollup to latest and add ability to visualize bundle (#1668).
  • Make build logs viewable for those who join our mailing list (#1661).
  • Remove travis (replaced by Cloud Build) (#1658).
  • Enable Google Cloud Build (#1657).
  • Speedup the WebGL tests by 2.5x (#1625).
  • Don't publish src/**/*_test.ts files on NPM. (#1631).
  • Speedup build and CI testing (#1624).

Documentation

  • scatterND doc fix (#1601). Thanks, @jgartman.
  • Add namespace util for the util.ts public methods. (#1654).

Misc

  • Fix the nightly script (use the imported exec function) (#1677).
  • Further modularize unit tests. (#1665).
  • Upgrade rollup-plugin-visualizer version (#1672).
  • Move rollup-plugin-visualizer as an optional dep (#1669).
  • Remove backend.setDataMover (#1664).
  • Refactor environment, make engine the root global singleton. (#1649).
  • Move the python code for browserHTTPRequest to a GitHub gist (#1652).
  • Add a bazel TS build (#1650). Thanks, @alexeagle.
  • Remove paging from the WebGL backend (#1647).
  • Make the save function in a gradient be a Tensor[] instead of a NamedTensorMap (#1644).
  • Remove redundant break (#1642). Thanks, @rkinabhi.
  • support begin, end and strides with length smaller than the input rank (#1622).
  • Clean up : update webgl cropAndResize code for readability (#1638). Thanks, @piercus.
  • Add ENV.findBackendFactory() to be used by test utils (#1635).
  • Fix a bug in shader compiler with zero-sized tensors (#1632).
  • adds error checking for tf.Buffer.get(outOfRangeLocation) (#1630).

Data (v1.0.1 ==> v1.1.0)

Bug fixes

  • Remove usage of @tensorflow/tfjs-core/dist (#169).

Development

  • Change test test setup to match new API of core. (#176).
  • Add Cloud Build integration tests (#180).
  • Remove OS X testing from travis, only test on browserstack on node 10. (#179).
  • Remove firefox from local testing to speed up local dev. (#177).
  • Don't publish _test.ts files on NPM. (#164).
  • Do not ignore src/ when publishing NPM (#157). Thanks, @huan.

Documentation

  • Update dataset.mapAsync to use mapAsync (#172).

Misc

  • Make seedrandom peerDependency and cleanup up node util.isPrimitive (#173).
  • Update tests to use tf.data.generator (#168).
  • Update documentations of tf.data.csv() (#162).

Layers (v1.0.1 ==> v1.1.0)

Features

Bug fixes

  • Fix an bug in which the output of a stateful RNN layer was incorrect disposed by the executor. [Fix a bug in stateful RNN state memory management] (#520).
  • Fix improper template litteral in topology.ts (#514). Thanks, @FremyCompany.
  • VarianceScaling initializer: Fix default arg values (#505).
  • L1 and L2 are functions, not classes, and are serialized as L1L2 (#507).
  • Allow null(None in Python) in Shape (#492). Thanks, @huan.
  • Fix l2Normalize rank error in epsilon-flooring of sum (#499). Thanks, @FremyCompany.

Performance

  • Call fused matMul in core whenever possible for performance. (#397).

Development

  • Add unit tests for Masking layer (#526).
  • Add Cloud Build integration testing (#527).
  • Remove integration/benchmarks in favor of new code in tfjs union (#522).
  • [tfjs2keras test]: Enable --dev --tfkeras option (#524).
  • [tfjs2keras test]: Add test against tf.keras (#523).
  • Remove firefox from local testing. (#515).
  • Fix typing by using TensorArrayWithArgs (#511).
  • Don't publish _test.ts files on NPM. (#500).

Documentation

  • Improvements related to EarlyStopping callback (#519).
  • Fix documentation of tf.LayerModel.fitDataset() (#509).

Misc

  • Fix unit tests for new API from core. (#512).
  • Remove getScalar(). (#513).
  • adds truncatedNormal as a valid distribution identifier (#510).
  • Provide types and string arrays for Layer class names and for all Keras class names. (#504).
  • Upgrade Python dependencies of tfjs2keras integration test (#503).
  • Fix incorrect code snippets in doc strings (#502).

Converter (v1.0.1 ==> v1.1.0)

Features

  • Support tfjs_layers_model2tfjs_layers_model sharding & quantization (#346).

Development

  • Add Cloud Build integration tests (migrate away from Travis) (#352).
  • Remove testing firefox locally, this is covered by browserstack. (#347).
  • Don't publish _test.ts files on NPM. (#336).

Documentation

  • Update README.md (#351).
  • Improve documentation of the tfjs_layers_model-->tfjs_layers_model route (#348).

Misc

  • refactor: fix variable name typo (#350). Thanks, @serv-inc.
  • Add a license to compiled_api.ts (#345).
  • remove the session_bundle and frozen_graph as valid input_format entries (#341).
  • use core env for looking for btoa (#343).
  • Update README.md (#342).
  • Add class-name translation to issues re BatchNormalizationV1 etc. (#334).

Node (v1.0.1 ==> v1.1.0)

Features

  • isNaN / isFinite / isInf. (#239).

Performance

  • Share host memory of Tensors with V8. (#241).

Development

  • Add Cloud Build test integration for Linux (#245).
  • Add GPU publishing to the publish-npm script. (#240).
  • Don't publish _test.ts files on NPM. (#230).

Documentation

  • Fix code snippet for tensorboard callback

Misc

  • Improve training progress bar (#243).
  • Add VSCode debugger task (#231).
  • Remove --next tag when publishing (#229).

Don't miss a new tfjs release

NewReleases is sending notifications on new releases.