MirrorPad 操作的渐变操作。此操作折叠 mirror-padded 张量。
用法
tf.raw_ops.MirrorPadGrad(
input, paddings, mode, name=None
)参数
-
input一个Tensor。要折叠的输入张量。 -
paddings一个Tensor。必须是以下类型之一:int32,int64。指定填充大小的two-column 矩阵。行数必须与input的等级相同。 -
modestring来自:"REFLECT", "SYMMETRIC"。MirrorPad操作中使用的模式。 -
name操作的名称(可选)。
返回
-
一个
Tensor。具有与input相同的类型。
此操作根据您指定的paddings 将input 的填充区域折叠为MirrorPad。 paddings 必须与提供给相应 MirrorPad op 的 paddings 参数相同。
输出的每个维度 D 的折叠大小为:
input.dim_size(D) - paddings(D, 0) - paddings(D, 1)
例如:
# 't' is [[1, 2, 3], [4, 5, 6], [7, 8, 9]].
# 'paddings' is [[0, 1]], [0, 1]].
# 'mode' is SYMMETRIC.
# rank of 't' is 2.
pad(t, paddings) ==> [[ 1, 5]
[11, 28]]
相关用法
- Python tf.raw_ops.MirrorPad用法及代码示例
- Python tf.raw_ops.Minimum用法及代码示例
- Python tf.raw_ops.MutexLock用法及代码示例
- Python tf.raw_ops.Maximum用法及代码示例
- Python tf.raw_ops.MatrixDiagPart用法及代码示例
- Python tf.raw_ops.MatrixDiag用法及代码示例
- Python tf.raw_ops.MatrixSetDiagV2用法及代码示例
- Python tf.raw_ops.MatrixDiagV2用法及代码示例
- Python tf.raw_ops.MatrixDiagV3用法及代码示例
- Python tf.raw_ops.MatrixSetDiagV3用法及代码示例
- Python tf.raw_ops.MatrixTriangularSolve用法及代码示例
- Python tf.raw_ops.MatrixDiagPartV3用法及代码示例
- Python tf.raw_ops.MatrixDiagPartV2用法及代码示例
- Python tf.raw_ops.MatrixBandPart用法及代码示例
- 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用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.raw_ops.MirrorPadGrad。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
