Skip to content

Commit

Permalink
Fix uninitialized mixed_D in dense class
Browse files Browse the repository at this point in the history
  • Loading branch information
avbokovoy committed Nov 25, 2024
1 parent 08a71b6 commit 8cbcdff
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3436,6 +3436,14 @@ def __init__(
torch.tensor(D_offsets, device=self.current_device, dtype=torch.int32),
)
assert self.D_offsets.numel() == T + 1

mixed_D = False
D = dims[0]
for d in dims:
if d != D:
mixed_D = True
break
self.mixed_D = mixed_D
# Required for VBE
self.register_buffer(
"feature_dims",
Expand Down

0 comments on commit 8cbcdff

Please sign in to comment.