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
I'm playing with implementing some of the ideas here in PyTorch. I was looking at the ExactRep code and (maybe?) found an issue:
>>> np.__version__
'1.13.1'
>>> x = ExactRep(np.array([2.0]))
>>> a = np.array([0.5])
>>> i = 11
>>>
>>> for _ in range(i):
... _ = x.div(a)
...
>>> for _ in range(i):
... _ = x.mul(a)
...
>>> x.val
array([-0.00067149])
Presumably, ExactRep should be able to handle this situation, and correctly return 2.0. Any ideas what might be going on? (If i <= 10, the code works as expected.)
TypeError: ufunc 'add' output (typecode 'O') could not be coerced to provided output parameter (typecode 'l') according to the casting rule ''same_kind''
The text was updated successfully, but these errors were encountered:
Hi All --
I'm playing with implementing some of the ideas here in PyTorch. I was looking at the
ExactRep
code and (maybe?) found an issue:Presumably,
ExactRep
should be able to handle this situation, and correctly return2.0
. Any ideas what might be going on? (Ifi <= 10
, the code works as expected.)Note that to get
ExactRep
to run I had to changeto
otherwise I get the error
The text was updated successfully, but these errors were encountered: