Skip to content

Commit

Permalink
sample requires integer number of samples, was being passed as a 1-tu…
Browse files Browse the repository at this point in the history
…ple. This should fix failed checks.
  • Loading branch information
belsten committed Nov 12, 2024
1 parent 0830756 commit 21b0d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparsecoding/data/datasets/bars.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
v_bars = v_bars.expand(self.P, self.P, self.P)
self.basis = torch.cat((h_bars, v_bars), dim=0) # [2*P, P, P]

self.weights = prior.sample([self.N]) # [N, 2*P]
self.weights = prior.sample(self.N) # [N, 2*P]

self.data = torch.einsum(
"nd,dhw->nhw",
Expand Down

0 comments on commit 21b0d67

Please sign in to comment.