KEMBAR78
[BC-Breaking] Drop pseudo complex support from spectrogram by mthrok · Pull Request #1958 · pytorch/audio · GitHub
Skip to content

Conversation

mthrok
Copy link
Contributor

@mthrok mthrok commented Nov 2, 2021

Following the plan #1337, this PR drops the support for pseudo complex type from F.spectrogram and T.Spectrogram. It also deprecates the use of return_complex argument.

@mthrok mthrok force-pushed the remove-pseudo-complex-support-spectrogram branch from 6e80017 to 3fdd4cb Compare November 3, 2021 00:33
@mthrok mthrok requested review from carolineechen, hwangjeff and nateanl and removed request for carolineechen and nateanl November 3, 2021 02:22
@mthrok mthrok marked this pull request as ready for review November 3, 2021 02:23
Copy link
Member

@nateanl nateanl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just need to address the docstring then we can merge it.

:attr:`center` is ``True``. Default: ``"reflect"``
onesided (bool, optional): controls whether to return half of results to
avoid redundancy. Default: ``True``
return_complex (bool, optional):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return_complex (bool, optional):
return_complex (bool or None, optional):

Copy link
Contributor Author

@mthrok mthrok Nov 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, None is is not a valid input and only used to detect if user pass something, so in docstring, we will keep it as bool.

:attr:`center` is ``True``. (Default: ``"reflect"``)
onesided (bool, optional): controls whether to return half of results to
avoid redundancy (Default: ``True``)
return_complex (bool, optional):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return_complex (bool, optional):
return_complex (bool or None, optional):

Co-authored-by: nateanl <nizhaoheng@gmail.com>
@mthrok mthrok merged commit 5ec6ada into pytorch:main Nov 3, 2021
@mthrok mthrok deleted the remove-pseudo-complex-support-spectrogram branch November 3, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants