-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wav2Vec2] Fix torch srcipt #24062
[Wav2Vec2] Fix torch srcipt #24062
Conversation
It seems like This PR should fix:
of the slow tests, such as
|
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code in torch.jit.trace
will call hasattr(mod, name)
. This function hasattr
will actually call the method if it is a property. Let's why we have this failure. In general, not really a jit issue but the python thing. See this.
So good fore me, but would like to know how the core maintainers think.
One possible different way is to raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good to me - thanks for fixing!
* [Wav2Vec2] Fix torch srcipt * fix more
What does this PR do?
Fixes Wav2Vec2 torch script slow tests
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.