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]


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

查看所有标签

猜你喜欢:

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

绝对价值

绝对价值

[美] 伊塔马尔·西蒙森 艾曼纽·罗森 / 钱峰 / 中国友谊出版公司 / 2014-7 / 45.00元

绝对价值指的是经用户体验的产品质量,即使用某件产品或者享受某项服务的切实感受。 过去,消费就像是押宝。一件商品好不好,一家餐馆的环境如何,没有亲身体验过消费者无从得知,只能根据营销人员提供的有限信息去猜测。品牌、原产地、价位、广告,这些重要的质量线索左右着消费者的选择。 然而,互联网和新兴科技以一种前所未有的速度改变了商业环境。当消费者可以在购买前查看到交易记录和消费者评价,通过便捷的......一起来看看 《绝对价值》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具