Skip to content

Commit

Permalink
Fixed minor bug in data generator
Browse files Browse the repository at this point in the history
  • Loading branch information
lrubens committed Nov 5, 2024
1 parent 87d8f2d commit 044717c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sam/onyx/generate_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ def _create_fiber_tree(self):
# self.fiber_tree = FiberTree(tensor=self.array if self.block_naive else self.array[...,
# self.shape[-2]:self.block_size,:self.shape[-1]:self.block_size])
self.fiber_tree = FiberTree(tensor=self.array)
self.tmp_fiber_tree = FiberTree(tensor=self.array[..., :self.shape[-2]:self.block_size,
:self.shape[-1]:self.block_size])
if len(self.shape) > 1:
self.tmp_fiber_tree = FiberTree(tensor=self.array[..., :self.shape[-2]:self.block_size,
:self.shape[-1]:self.block_size])
else:
self.tmp_fiber_tree = FiberTree(tensor=self.array)

def transpose_tensor(self, axes=None):
'''
Expand Down

0 comments on commit 044717c

Please sign in to comment.