| safe_grad | R Documentation |
Wraps tape$gradient() and returns tf$zeros_like(x) on error or
when the result is a Python None.
safe_grad(tape, y, x)
tape |
A |
y |
The tensor to differentiate. |
x |
The variable with respect to which to differentiate. |
A TensorFlow tensor (gradient or zeros).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.