From 11079576330e0ea3e1643972e8362cd6bef71941 Mon Sep 17 00:00:00 2001 From: fancy45daddy <124528204+fancy45daddy@users.noreply.github.com> Date: Wed, 4 Dec 2024 00:37:22 -0800 Subject: [PATCH] Update brownian_interval.py --- torchsde/_brownian/brownian_interval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchsde/_brownian/brownian_interval.py b/torchsde/_brownian/brownian_interval.py index 79391d2..b9fa036 100644 --- a/torchsde/_brownian/brownian_interval.py +++ b/torchsde/_brownian/brownian_interval.py @@ -28,7 +28,7 @@ def _randn(size, dtype, device, seed): - generator = torch.Generator(device).manual_seed(int(seed)) + generator = torch.Generator().manual_seed(int(seed)) return torch.randn(size, dtype=dtype, device=device, generator=generator)