We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3711ec5 commit 3eb0779Copy full SHA for 3eb0779
1 file changed
pytorch_wavelets/dtcwt/lowlevel.py
@@ -59,8 +59,7 @@ def prep_filt(h, c, transpose=False):
59
""" Prepares an array to be of the correct format for pytorch.
60
Can also specify whether to make it a row filter (set tranpose=True)"""
61
h = _as_col_vector(h)[::-1]
62
- #h = np.reshape(h, [1, 1, *h.shape])
63
- h = np.expand_dims(h, (0,1))
+ h = h[None, None, :]
64
h = np.repeat(h, repeats=c, axis=0)
65
if transpose:
66
h = h.transpose((0,1,3,2))
0 commit comments