We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04eb97a commit 1625a23Copy full SHA for 1625a23
botorch/sampling/base.py
@@ -60,7 +60,9 @@ def __init__(
60
f"got {sample_shape}."
61
)
62
self.sample_shape = sample_shape
63
- self.seed = seed if seed is not None else torch.randint(0, 1000000, (1,)).item()
+ self.seed = (
64
+ seed if seed is not None else int(torch.randint(0, 1000000, (1,)).item())
65
+ )
66
self.register_buffer("base_samples", None)
67
68
@abstractmethod
0 commit comments