-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
detectron2/utils/tracing.py", line 5, in <module> from torch.fx._symbolic_trace import is_fx_tracing as is_fx_tracing_current ImportError: cannot import name 'is_fx_tracing' from 'torch.fx._symbolic_trace' #4489
Comments
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. |
torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html ModuleNotFoundError: No module named 'torch.fx._symbolic_trace' on deployment |
Solution: use the previous commit...
|
@jinfagang jinfagang i also faced this same issue so i have changed manually in detectron2/utils/tracing.py command the import and add following code
|
did it work for you? |
Yes , it worked |
This is also affected other libraries such as Transformers - see: huggingface/transformers@1f3c228 Could we fix this on master? |
this could temp fix |
Thanks |
I tried this but not worked. Can you check it once again |
This should now be fixed with the merge of #4491 and facebookresearch/d2go#362 |
detectron2/utils/tracing.py", line 5, in
from torch.fx._symbolic_trace import is_fx_tracing as is_fx_tracing_current
ImportError: cannot import name 'is_fx_tracing' from 'torch.fx._symbolic_trace'
Please fix it, this error exits long time....
The text was updated successfully, but these errors were encountered: