File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1111import torch
1212
1313from .constants import (
14+ SUPPORTED_DTYPES ,
1415 BoundaryMode ,
1516 OrthogonalizeMethod ,
1617 Wavelet ,
@@ -126,7 +127,7 @@ def _is_boundary_mode_supported(boundary_mode: Optional[OrthogonalizeMethod]) ->
126127
127128
128129def _is_dtype_supported (dtype : torch .dtype ) -> bool :
129- return dtype in [ torch . float32 , torch . float64 ]
130+ return dtype in SUPPORTED_DTYPES
130131
131132
132133def _outer (a : torch .Tensor , b : torch .Tensor ) -> torch .Tensor :
Original file line number Diff line number Diff line change 2020 "WaveletDetailDict" ,
2121]
2222
23+ SUPPORTED_DTYPES = {torch .float32 , torch .float64 }
24+
2325
2426class Wavelet (Protocol ):
2527 """Wavelet object interface, based on the pywt wavelet object."""
You can’t perform that action at this time.
0 commit comments