fix Tensor.manual_seed() default to wrong type (#1168)

* fix Tensor.manual_seed() default to wrong type None while it should be int

* remove that tests
This commit is contained in:
Yahya Lmallas
2023-07-07 18:42:48 +01:00
committed by GitHub
parent 9b6e57eccd
commit fd66d1ca00

View File

@@ -133,7 +133,7 @@ class Tensor:
_seed: int = int(time.time())
@staticmethod
def manual_seed(seed=None): Tensor._seed = seed
def manual_seed(seed=0): Tensor._seed = seed
@staticmethod
def rand(*shape, **kwargs):