Skip to content

Commit

Permalink
Simplify PiecewiseDiscontinuousExpand
Browse files Browse the repository at this point in the history
  • Loading branch information
jloveric committed Jun 15, 2024
1 parent 0b6177a commit 387f7a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions high_order_layers_torch/Basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ def __call__(self, x):
mat_trans[windex, wrange.view(-1)] = out.flatten()
mat = mat_trans.reshape(
mat.shape[0], mat.shape[1], mat.shape[2], mat.shape[3], mat.shape[4]
)

mat = mat.permute(4, 0, 1, 2, 3)
).permute(4, 0, 1, 2, 3)

return mat

Expand Down

0 comments on commit 387f7a4

Please sign in to comment.