明智地添加所有輸入張量元素。
用法
tf.raw_ops.AddN(
inputs, name=None
)參數
-
inputs至少 1 個具有相同類型的Tensor對象的列表:float32,float64,int32,uint8,int16,int8,complex64,int64,qint8,quint8,qint32,bfloat16,uint16,complex128,half,uint32,uint64,variant。 -
name操作的名稱(可選)。
返回
-
一個
Tensor。具有與inputs相同的類型。
輸入必須具有相同的大小和形狀。
x = [9, 7, 10]
tf.math.add_n(x) ==> 26
相關用法
- Python tf.raw_ops.Atan2用法及代碼示例
- Python tf.raw_ops.Atan用法及代碼示例
- Python tf.raw_ops.Asinh用法及代碼示例
- Python tf.raw_ops.Angle用法及代碼示例
- Python tf.raw_ops.Asin用法及代碼示例
- Python tf.raw_ops.Atanh用法及代碼示例
- Python tf.raw_ops.AssignVariableXlaConcatND用法及代碼示例
- Python tf.raw_ops.Acosh用法及代碼示例
- Python tf.raw_ops.ArgMax用法及代碼示例
- Python tf.raw_ops.ArgMin用法及代碼示例
- Python tf.raw_ops.AsString用法及代碼示例
- Python tf.raw_ops.TPUReplicatedInput用法及代碼示例
- Python tf.raw_ops.Bitcast用法及代碼示例
- Python tf.raw_ops.SelfAdjointEigV2用法及代碼示例
- Python tf.raw_ops.BatchMatMul用法及代碼示例
- Python tf.raw_ops.OneHot用法及代碼示例
- Python tf.raw_ops.ResourceScatterNdSub用法及代碼示例
- Python tf.raw_ops.ReadVariableXlaSplitND用法及代碼示例
- Python tf.raw_ops.GatherV2用法及代碼示例
- Python tf.raw_ops.Expm1用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.AddN。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
