mirror of https://github.com/commaai/tinygrad.git
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:
parent
9b6e57eccd
commit
fd66d1ca00
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue