pytorch
9ff7ddb2 - [inductor] Don't import torchvision (#93027)

Commit
2 years ago
[inductor] Don't import torchvision (#93027) Fixes #93019 Since PyTorch regularly breaks binary compatibility, `torchvision` must be compiled with the exact same version of PyTorch. If not, then importing it may cause mysterious failures at runtime due to binary incompatibility. This fixes the issue by delaying the `make_fallback` call for `torchvision.roi_align` until the operator appears in a graph being lowered, by which point the user must have imported torchvision themself. Pull Request resolved: https://github.com/pytorch/pytorch/pull/93027 Approved by: https://github.com/jansel
Author
Committer
Parents
Loading