-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backend.item
in MPS calculation is incompatible with autograd in jax
#959
Comments
hi, and thanks for the message! |
The full output is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In file https://github.com/google/TensorNetwork/blob/master/tensornetwork/matrixproductstates/base_mps.py,
line 319:
res.append(self.backend.item(result.tensor))
and line 479
return [self.backend.item(o) for o in c]
,the using of
self.backend.item
is incompatible with autograd in jax (and maybe also other backends).I haven't checked with other files so those files might have similar issues.
Here's a simple example:
The text was updated successfully, but these errors were encountered: