【TensorFlow基础】tf.add 和 tf.nn.bias_add 的区别
发布时间:2020-12-14 03:49:29 所属栏目:大数据 来源:网络整理
导读:1. tf.add(x,?y,name) Args: x : A `Tensor`. Must be one of the following types: `bfloat16`,`half`,`float32`,`float64`,`uint8`,`int8`,`int16`,`int32`,`int64`,`complex64`,`complex128`,`string`. y : A `Tensor`. Must have the same type as `x`.
1. tf.add(x,?y,name)Args: x: A `Tensor`. Must be one of the following types: `bfloat16`,`half`,`float32`,`float64`,`uint8`,`int8`,`int16`,`int32`,`int64`,`complex64`,`complex128`,`string`. y: A `Tensor`. Must have the same type as `x`. name: A name for the operation (optional). Returns: A `Tensor`. Has the same type as `x`. ? 2.?tf.nn.bias_add(value,bias,data_format=None,name=None)Adds `bias` to `value`. This is (mostly) a special case of `tf.add` where `bias` is restricted to 1-D. Broadcasting is supported,so `value` may have any number of dimensions. Unlike `tf.add`,the type of `bias` is allowed to differ from `value` in the case where both types are quantized. Args: value: A `Tensor` with type `float`,`double`,or `complex128`. bias: A 1-D `Tensor` with size matching the last dimension of `value`. Must be the same type as `value` unless `value` is a quantized type,in which case a different quantized type may be used. data_format: A string. ‘NHWC‘ and ‘NCHW‘ are supported. name: A name for the operation (optional). ? 3. tf.add 和 tf.nn.bias_add 的区别
? ReferencesTensorFlow API 1.10 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- DELPHI高性能大容量SOCKET并发(一):IOCP完成端口例子介绍
- [VB.NET]VB.NET生成的EXE文件在我的电脑上能运行,但是放到其
- groovy – 如何将小数转换为整数
- [VB.NET源码]20_工具栏控件
- Delphi 正则表达式之TPerlRegEx 类的属性与方法(7): Split
- Lua and Debugger
- 算法练习--LeetCode--17. Letter Combinations of a Phone
- VB 皮肤
- 六月Delphi XE8 及 C++Builder XE8 中文手册如期上市
- 四种BI 开源工具介绍-SpagoBI,openI,JasperSoft,Pentaho