This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 359
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: