Repository navigation
Defer TorchScript compilation until metrics are used - #240
harshal-prozone wants to merge 1 commit into
Conversation
|
Hi @harshal-prozone! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Summary
torcheval.metricsno longer runs the deprecated TorchScript decorator.Fixes #226
Validation
FutureWarningand passed with the patch. A separate import probe counted 30 warnings on upstream and zero with the patch.git diff --checkpassed.python -m pytest -n 2 --dist loadfile --timeout=120 -v --tb=short -p no:cacheprovider tests/finished with 474 passed, seven skipped, and no failures. This includes the distributed class tests and all four VGGish tests. TorchAudio 2.7.1 provides the VGGish pipeline with the working weight loader required by this suite.OpenAI Codex assisted with investigation, implementation, testing, and independent review.