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
338 @classmethod
339 def copy(cls, x: int, n: int) -> Matrix:
340 array = [[i + int(j % n * x) == j
--> 341 for j in range(n * x)] for i in range(x)]
342 return cls(array, x, n * x)
TypeError: 'Dim' object cannot be interpreted as an integer
The type signature of tensor.Tensor.copy is def copy(cls, x: int, n: int) -> Matrix:, maybe it should be def copy(cls, x: Dim, n: int) -> Matrix: instead?
The text was updated successfully, but these errors were encountered:
The type signature of
tensor.Tensor.copy
isdef copy(cls, x: int, n: int) -> Matrix:
, maybe it should bedef copy(cls, x: Dim, n: int) -> Matrix:
instead?The text was updated successfully, but these errors were encountered: