What would be the output of the following piece of code? x = tf.convert_to_tensor(2.0) with tf.GradientTape() as
Fantastic news! We've Found the answer you've been seeking!
Question:
What would be the output of the following piece of code?
x = tf.convert_to_tensor(2.0)
with tf.GradientTape() as tape:
tape.watch(x)
y = x * x - 2
z = y * x
grads = tape.gradient(z, x)
Related Book For
Project Management Achieving Competitive Advantage
ISBN: 978-0133798074
4th edition
Authors: Jeffrey K. Pinto
Posted Date: