翻译 | 王柯凝
出品 | AI科技大本营
TensorFlow tfjs 0.10.3 近日正式发布,新版本主要有以下改进内容,AI科技大本营对其编译如下。
▌资源
- 源代码(zip):https://github.com/tensorflow/tfjs/archive/v0.10.3.zip
- 源代码(tar.gz):https://github.com/tensorflow/tfjs/archive/v0.10.3.tar.gz
▌新增特性
- 添加 tf.toPixels.
- 添加 tf.erf op
- 添加 tf.movingAverage
- 添加tf.resizeNearestNeighbor
- 添加 slice ergonomics
- 为 tf.pow 完成梯度运算
- 为 tf.batchNormalization4d添加梯度运算
- 为 tf.matMul 完成梯度运算
- 添加 tf.logSigmoid、tf.softplus和梯度
▌重大改变
- 在 tensor 2d/3d/4(flatValues, shape) 中需要 shape
- TF 与 API 对齐:使用 TensorFlow Python 将后端 API 和 NaN propagation, dtype strictness, kernel signature 等功能对齐
- 将 webgl 和 cpu 后端对齐以和 TF 更加接近
▌Bug 修复
- 实现用于整数除法和更新 CONTRIBUTING.md 的 floordiv
▌性能
▌TypeScript
▌开发
- 添加 yarn "link-local" 和 yarn "publish-local"
- Tslint 中添加引用规则
- 核心测试可以被其他软件包重用
▌文档
- jsdocs 中添加代码示例
- 修复 tsdoc 中的错误
- 修正总和和均值的片段注释
- 数组操作:修复 tf.clone 文档
▌杂项
- Assert arguments to ops are Tensors
- test_util 不依赖于 jasmine
- 清除演示脚本
- 修复 clipByValue 中的错误
- 删除 deeplearnjs 参考
- 移除旧的 demos,将基准点移至 integration_tests
- 单元测试中的 dl 重命名为 tf
更详细的内容请见:https://github.com/tensorflow/tfjs/releases/tag/v0.10.3