Skip to content

Instantly share code, notes, and snippets.

@ispamm
Last active March 7, 2018 11:42
Show Gist options
  • Save ispamm/a132a40030dfc62030bc2425746f2141 to your computer and use it in GitHub Desktop.
Save ispamm/a132a40030dfc62030bc2425746f2141 to your computer and use it in GitHub Desktop.
# Second-order derivative
f_gg = tfe.gradients_function(f_grad)
f_gg(1.0)
# Print: [<tf.Tensor: id=57, shape=(), dtype=float32, numpy=2.0>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment