Closed marcinwitkowski closed 1 year ago
Thanks! For the case when right_context
is negative, I think it is better to just set it to 0 and raise a warning to inform the user about it, instead of raising an error.
@desh2608 , changed as you suggested. Please take a look now.
I have also updated isort
in pre-commit-config.yaml as the previous version resulted in the following error:
RuntimeError: The Poetry configuration is invalid:
- [extras.pipfile_deprecated_finder.2] 'pip-shims<=0.3.4' does not match '^[a-zA-Z-_.0-9]+$'
When
right_context
is set to 0 (which is its default value in function args), the line changed in this PR becomes:which basically makes
x_hat
empty matrix of size (number_of_channels,0). The conditioning proposed in this PR prevents from this.