Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Fletez-Brant committed Mar 25, 2024
1 parent 24dea81 commit d5dff05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyro/nn/auto_reg_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def sample_mask_indices(
:param simple: True to space fractional indices by rounding to nearest int, false round randomly
:type simple: bool
"""
indices = torch.linspace(1, input_dim, steps=hidden_dim, device="cpu").to(
torch.tensor(0.0).device
)
indices = torch.linspace(1, input_dim, steps=hidden_dim)
if simple:
# Simple procedure tries to space fractional indices evenly by rounding to nearest int
return torch.round(indices)
Expand Down

0 comments on commit d5dff05

Please sign in to comment.