Skip to content

Instantly share code, notes, and snippets.

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