What is the difference between
tf.add(x, y)
and
x + y
in TensorFlow? What would be different in y
Mrry nicely explained that there is no real difference. I will just add when using tf.add
is beneficial.
tf.add has one important parameter which is name
. It allows you to name the operation in a graph which will be visible in tensorboard. So my rule of thumb, if it will be beneficial to name an operation in tensorboard, I use tf.
equivalent, otherwise I go for brevity and use overloaded version.