Tensorflow commonly used mathematical operation functions

# Arithmetic operation +-* /%

1.tf.add () ---------------- Addition of tf

2.tf.subtract () ------------ Subtraction of tf

3.tf.multiply () ------------ Multiplication of tf

4.tf.divide () --------------- division of tf

5.tf.mod () ------------------ tf takes the remainder

#Power refers to logarithmic operation

1.tf.pow () ----------------- x to the power of y

2.tf.square () ------------- square of x

3.tf.sqrt () ------------------ x open root

4.tf.exp () ------------------ e to the nth power

5.tf.log () ------------------- logarithm to base e

#Other operations

1.tf.negative () ----------- negative number of x

2.tf.sign () ----------------- Take the sign of x, x returns 1 if it is positive, otherwise returns -1

3.tf.reciprocal () --------- Take the reciprocal of x

4.tf.abs () ----------------- Take the absolute value of x

5.tf.round () ---------------- x rounded

6.tf.ceil () ----------------- x round up

7.tf.floor () ---------------- x round down

8.tf.rint () ------------------ x takes the nearest number

9.tf.maximum () --------- Return the larger of the two tensor

10.tf.minimum () -------- returns the smaller of the two tensor

#Trigonometric function

1.tf.cos()

2.tf.sin ()

3.tf.tan()

4.tf.acos()

5.tf.asin()

6.tf.at the ()

#other

1.tf.div () ------------------ Division, if x and y are both integers, return integer result, if x is float, return floating point result

2.tf.truediv () ------------ Division, return x / y floating point result

3.tf.floordiv () ----------- Division, return result rounded down

 

 

 

 

 

 

 

 

 

 

Published 6 original articles · praised 0 · visits 183

Guess you like

Origin blog.csdn.net/qq_33301684/article/details/89488730
Recommended