autodiff Questions

3

Solved

It has been firmly established that my_tensor.detach().numpy() is the correct way to get a numpy array from a torch tensor. I'm trying to get a better understanding of why. In the accepted answer t...
Dehiscence asked 25/8, 2020 at 15:48

2

Solved

Consider the following function def foo(x): with tf.GradientTape() as tape: tape.watch(x) y = x**2 + x + 4 return tape.gradient(y, x) The call to tape.watch(x) is necessary if the function...
Zeeba asked 1/2, 2019 at 12:42

2

I am trying to modify the example here: # include <cppad/cppad.hpp> namespace { // --------------------------------------------------------- // define the template function JacobianCases<...
Lacee asked 30/5, 2018 at 23:25

1

Solved

I am interested in using a SparseTensor in tensorflow, however, I often get LookupError: No gradient defined for operation ... Apparently gradient computation is not defined for many ops for ...
Contracted asked 24/1, 2018 at 8:35
1

© 2022 - 2024 — McMap. All rights reserved.