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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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):