forked from tinygrad/tinygrad
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:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user