TensorFlow.js 0.11.1 发布,在浏览器中训练 ML 模型

栏目: 软件资讯 · 发布时间: 6年前

内容简介:TensorFlow.js 是一个开源硬件加速 JavaScript 库,用于训练和部署机器学习模型。 TensorFlow.js 0.11.1 已发布,包含大量更新: Add capability to save and load tf.Models using the following mediums: brow...

TensorFlow.js 是一个开源硬件加速 JavaScript 库,用于训练和部署机器学习模型。

TensorFlow.js 0.11.1 已发布,包含大量更新:

  • Add capability to save and load tf.Models using the following mediums:

    • browser Local Storage

    • browser IndexedDB

    • browser file downloads and uploads

    • HTTP requests
      See Tutorial Page for more details. (#181).

Core (0.8.3 ==> 0.11.0)

Features

  • Add tf.unstack (#1018). 

  • Add tf.losses.logLoss (#1021). 

  • Add tf.losses.hingeLoss (#1008). 

  • Gradient for tf.gather (#981). 

  • Add resizeBilinear gradient implementation. (#996).

  • Add tf.losses.cosineDistance (#1005).

  • Add tf.losses.meanSquaredError (#991). 

  • Add tf.disposeVariables which disposes all registered variables. (#988). 

  • Add tensor.round() (chaining was missing for round) (#994).

  • Add support for loading quantized weights (#965).

  • Add tf.linalg.gramSchmidt and tf.eye (#1024).

  • Add tf.io.browserHTTPRequest (#1030).

  • Add tf.io.browserDownloads() and tf.io.browserFiles() (#1012).

  • Add IOHandler subtype BrowserLocalStorage. (#1003).

  • Add tf.cumsum (#1032).

  • Add tf.io.browserIndexedDB (#1017).

  • Add support for StridedSlice (#1026).

  • Add model store managers (#1038).

Breaking changes

  • The symbol "tfc" becomes "tf" for ES5 tf-core.js bundle users. [Convert core to use rollup for bundling.] (#1037).

  • Export GPGPUContext and add getCanvas() to the WebGLBackend. (#982).

Bug fixes

  • Fix bug: transpose(scalar|1d) should return a clone. (#1033).

  • Remove explicit dispose in tf.grad to fix second-order gradient (#1013). 

  • Clean up tensor leak in tf.toPixels() (#1031).

  • Fix the import/export of gpgpu_util. (#1009). 

  • Fix a bug with backendCPU.conv2dDerInput (#1014).

  • Fix tensor2d/3d/4d to require shape to have the correct length (#1004).

  • Checks if window location is not undefined (#1002).

  • Default behavior changed with newest NVidia Drivers in Mac OS >=10.13.4 so we have to check for NaN explicitly. [Fix nan propagation in tf.relu] ([#1001]

  • Improve the WebGL random number generator (#993).

  • Fix build issue where module-import code gets dropped from the bundle (#987).
    (tensorflow/tfjs-core#1001)).

  • Align tf.resizeNearestNeighbor with TF. (#1000). 

  • Return 0 for tf.sign(NaN) to align with TF (#998).

Performance

  • Optimize CPU conv2dDerInput on CPU to be 100x faster (#995). 

  • Quantizing weights reduces model size and improves model download time [Add support for loading quantized weights] (#965).

Development

  • adds template to pull request message [adds pull request template] (#1036).

  • Travis: run tests on Node.js 10 as well (#1039). 

  • Travis: use yarn cache (#1040). 

  • Travis: clone only last 5 commits (#1041). 

Documentation

  • Fix typo in tf.tile documentation. (#1043).

  • Remove erroneous endpoint parameter from linspace JSDoc (#1020).

  • Removed duplicate typo in tf.buffer docs (#1023). 

  • Fixe bug in oneHot doc example (#1015). 

  • Fix code snippet in docs where indices should be int32 (#989). 

  • Fix typo in comments of io module. (#1006). 

  • Update a comment in environment.ts reference deeplearn.js. (#1007). 

  • Add logic operation code snippets in jsdocs (#900). 

  • Update docstring for tf.setBackend() re disposing the old backend. (#1029).

Misc

  • Export GPGPUContext and add getCanvas() to the WebGLBackend. (#982).

  • Add IS_BROWSER to ENV; add scheme-based URL router to tf.io.* modules (#1034).

  • Add tf.pad test for 4d tensor and test memory (#1025).

  • Exports operation decorator for use in tfjs-layers (#1027).

  • Add serialization infrastructure to core (#997).

  • Add tests for tf.conv1d gradients (#992). 

  • Add basic types and helper methods for model exporting (#990).

Layers (0.5.2 ==> 0.6.1)

Features

  • Add version string (e.g., 'tfjs-layers 0.10.3') to the keras_version field of JSONs from model serialization.(#157).

  • added tf.layers.cropping2D (#155). 

Breaking changes

  • "tfl" => "tf" for es5 bundle users. (#191).

  • Remove the exporting of the backend symbols (#193).

  • Model.fit(): Change default epochs to 1 (#156).

Bug fixes

  • Fix axis in Softmax activation layer (#177). 

  • Fix slowness in Orthgonal initializer for some RNN layers. (#172).

  • The padding mode is called 'causal' not 'casual' (#152). 

Development

  • chore: use yarn cache (#187). 

  • chore: add Node.js 10 (#189).

  • adds default pull request template to help remind contributors to use PR commit message tags. (#180).

  • Add integration_test/tfjs2keras. (#173).

Documentation

  • Add code snippet for tf.layers.reshape. (#198).

  • Clarify that the default value of useBias is true for (#162).

  • Clarify that filters is a required field for non-depthwise (#162).

  • Fixes #165: Document model.fit callbacks (#149). 

Misc

  • Update topology.ts (#159).

下载地址:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

算法

算法

Robert Sedgewick、Kevin Wayne / 人民邮电出版社 / 2012-3 / 99.00元

《算法(英文版•第4版)》作为算法领域经典的参考书,全面介绍了关于算法和数据结构的必备知识,并特别针对排序、搜索、图处理和字符串处理进行了论述。第4版具体给出了每位程序员应知应会的50个算法,提供了实际代码,而且这些Java代码实现采用了模块化的编程风格,读者可以方便地加以改造。本书配套网站提供了本书内容的摘要及更多的代码实现、测试数据、练习、教学课件等资源。 《算法(英文版•第4版)》适合......一起来看看 《算法》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换