Skip to content

Commit 7c2663c

Browse files
committed
pass seed none
1 parent fc3454f commit 7c2663c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ot/backend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,9 @@ def reshape(self, a, shape):
22012201
return torch.reshape(a, shape)
22022202

22032203
def seed(self, seed=None):
2204-
if isinstance(seed, int):
2204+
if seed is None:
2205+
pass
2206+
elif isinstance(seed, int):
22052207
self.rng_.manual_seed(seed)
22062208
self.rng_cuda_.manual_seed(seed)
22072209
elif isinstance(seed, torch.Generator):

0 commit comments

Comments
 (0)