mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-02-19 02:44:40 -05:00
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:
@@ -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