You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the upcoming release of numpy 1.25 the return types of the functions eig(), eigh(), qr(), slogdet(), and svd() change from tuple to a corresponding sublass of namedtuple (for example numpy.linalg.linalg.EighResult for eigh). autograd in its current form seems to be unable to deal with this. Here is a minimal example:
There is a mapping of types, but ideally the mapping should also accept subtypes. Perhaps the mapping object should be replaced with one that accepts subtypes. It should be possible to use functools.singledispatch for this, which properly handles subclasses.
With the upcoming release of numpy 1.25 the return types of the functions
eig()
,eigh()
,qr()
,slogdet()
, andsvd()
change fromtuple
to a corresponding sublass ofnamedtuple
(for examplenumpy.linalg.linalg.EighResult
foreigh
).autograd
in its current form seems to be unable to deal with this. Here is a minimal example:which leads to the following error message:
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: