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 24b7a7f commit ff6ae1cCopy full SHA for ff6ae1c
pyro/poutine/subsample_messenger.py
@@ -45,7 +45,7 @@ def __init__(
45
)
46
47
with ignore_jit_warnings(["torch.Tensor results are registered as constants"]):
48
- self.device = device or torch.Tensor().device
+ self.device = device or torch.tensor(tuple()).device
49
50
@ignore_jit_warnings(["Converting a tensor to a Python boolean"])
51
def sample(self, sample_shape: torch.Size = torch.Size()) -> torch.Tensor:
0 commit comments