將 v 添加到 x 的指定行中。
用法
tf.raw_ops.InplaceAdd(
x, i, v, name=None
)
參數
-
x
一個Tensor
。 T 類型的Tensor
。 -
i
Tensor
類型為int32
。一個向量。索引到x
的 left-most 維度。 -
v
一個Tensor
。必須與x
具有相同的類型。 T 類型的Tensor
。與 x 相同的維度大小,除了第一個維度,它必須與 i 的大小相同。 -
name
操作的名稱(可選)。
返回
-
一個
Tensor
。具有與x
相同的類型。
Computes y = x; y[i,:] += v; return y.
相關用法
- Python tf.raw_ops.Invert用法及代碼示例
- Python tf.raw_ops.InvertPermutation用法及代碼示例
- Python tf.raw_ops.IsInf用法及代碼示例
- Python tf.raw_ops.IsNan用法及代碼示例
- Python tf.raw_ops.IdentityN用法及代碼示例
- Python tf.raw_ops.IsFinite用法及代碼示例
- Python tf.raw_ops.Imag用法及代碼示例
- 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用法及代碼示例
- Python tf.raw_ops.BitwiseAnd用法及代碼示例
- Python tf.raw_ops.UniqueWithCounts用法及代碼示例
- Python tf.raw_ops.DecodeGif用法及代碼示例
- Python tf.raw_ops.Size用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.InplaceAdd。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。