When I try turning on JIT compilation of the deepfilternet3 model during training it fails to compile the model. This seems to be due to two things:
the forward method in SqueezedGRU and SqueezedGRU_S does not explicitly type hint the h argument with Optional[Tensor];
when setting the coefs.view in the DF class in multiframe.py it need the dimensions to all be explicit rather than trying to work them out from the expansion of *coefs.shape[2:].
This PR fixes both of these things.
The change in multiframe.py does assume that the coefs tensor always has 4 dimension, so if that's not the case then a slight change will be required.
When I try turning on JIT compilation of the deepfilternet3 model during training it fails to compile the model. This seems to be due to two things:
forward
method inSqueezedGRU
andSqueezedGRU_S
does not explicitly type hint theh
argument withOptional[Tensor]
;coefs.view
in theDF
class in multiframe.py it need the dimensions to all be explicit rather than trying to work them out from the expansion of*coefs.shape[2:]
.This PR fixes both of these things.
The change in multiframe.py does assume that the
coefs
tensor always has 4 dimension, so if that's not the case then a slight change will be required.