Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-01-10 08:25:00 -05:00
parent 663b0ed800
commit ac2adaa299
12 changed files with 2 additions and 24 deletions
-1
View File
@@ -25,7 +25,6 @@ def init_generator(device: torch.device, fallback: torch.Generator = None):
"""
Forks the current default random generator given device.
"""
print(f"init_generator device = {device}")
if device.type == "cpu":
return torch.Generator(device="cpu").set_state(torch.get_rng_state())
elif device.type == "cuda":