Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tensorflow tf.constant

v = tf.Variable([0.0])with tf.GradientTape() as g:    loss = tf.constant(v + v)g.gradient(loss, v).numpy()array([2.], dtype=float32)
Source by www.tensorflow.org #
 
PREVIOUS NEXT
Tagged: #tensorflow
ADD COMMENT
Topic
Name
5+7 =