Skip to content

Instantly share code, notes, and snippets.

@MohanaRC
Created November 7, 2022 12:22
Show Gist options
  • Save MohanaRC/a9f1e7ad9915c86949499ed68ab143fe to your computer and use it in GitHub Desktop.
Save MohanaRC/a9f1e7ad9915c86949499ed68ab143fe to your computer and use it in GitHub Desktop.
# Run the function for x=5
tmp_x = tf.constant(5.0)
dy_dx = tf_gradient_tape(tmp_x)
result = dy_dx.numpy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment