TensorFlow:useful operators
作者:
ACphart | 来源:发表于
2018-08-15 00:59 被阅读4次
-
tf.add(x, y)
Add two tensors of the same type, x + y
-
tf.subtract(x, y)
Subtract tensors of the same type, x - y
-
tf.multiply(x, y)
Multiply two tensors element-wise
-
tf.pow(x, y)
Take the element-wise power of x to y
-
tf.exp(x)
Equivalent to pow(e, x), where e is Euler’s number (2.718…)
-
tf.sqrt(x)
Equivalent to pow(x, 0.5)
-
tf.div(x, y)
Take the element-wise division of x and y
-
tf.truediv(x, y)
Same as tf.div, except casts the arguments as a float
-
tf.floordiv(x, y)
Same as truediv, except rounds down the final answer into an integer
-
tf.mod(x, y)
Takes the element-wise remainder from division
本文标题:TensorFlow:useful operators
本文链接:https://www.haomeiwen.com/subject/yhxibftx.html
网友评论