一元操作
exp
对输入 Tensor
逐元素做 exp
操作。
API Reference 请参考 exp
tanh
对输入 Tensor
逐元素取正切。
API Reference 请参考 cn_api_fluid_layers_tanh
sqrt
对输入 Tensor
逐元素取平方根。
API Reference 请参考 sqrt
abs
对输入 Tensor
逐元素取绝对值。
API Reference 请参考 abs
ceil
对输入 Tensor
逐元素向上取整。
API Reference 请参考 ceil
floor
对输入 Tensor
逐元素向下取整。
API Reference 请参考 floor
sin
对输入 Tensor
逐元素取正弦。
API Reference 请参考 sin
cos
对输入 Tensor
逐元素取余弦。
API Reference 请参考 cos
cosh
对输入 Tensor
逐元素取双曲余弦。
API Reference 请参考 cosh
round
对输入 Tensor
逐元素四舍五入取整。
API Reference 请参考 round
square
对输入 Tensor
逐元素取平方。
API Reference 请参考 square
reciprocal
对输入 Tensor
逐元素取倒数。
API Reference 请参考 reciprocal
二元操作
elementwise_add
对两个 Tensor
逐元素相加,对应的数学操作符为 +
API Reference 请参考 elementwise_add
elementwise_sub
对两个 Tensor
逐元素相减,对应数学操作符 -
API Reference 请参考 elementwise_sub
elementwise_mul
对两个 Tensor
逐元素相乘, 对应数学操作符 *
API Reference 请参考 cn_api_fluid_layers_elementwise_mul
elementwise_div
对两个 Tensor
逐元素相除, 对应数学操作符 /
或 //
API Reference 请参考 elementwise_div
elementwise_pow
对两个 Tensor
逐元素做次幂操作, 对应数学操作符 **
API Reference 请参考 elementwise_pow
equal
对两个 Tensor
逐元素判断是否相等, 对应数学操作符 ==
API Reference 请参考 equal
less_than
对两个 Tensor
逐元素判断是否满足小于关系, 对应数学操作符 <
API Reference 请参考 less_than
sum
对两个 Tensor
逐元素相加。
API Reference 请参考 sum
elementwise_min
对两个 Tensor
逐元素进行 min(x, y)
操作。
API Reference 请参考 elementwise_min
elementwise_max
对两个 Tensor
逐元素进行 max(x, y)
操作。
API Reference 请参考 elementwise_max
matmul
对两个 Tensor
进行矩阵乘操作。
API Reference 请参考 matmul