You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AnnotateSpans should work on modules imported from Pytorch.
Actual behavior
It fails, because the PyTorch importer creates variables with "." in their names. AnnotateSpans works by pretty-printing and then re-parsing a module. Unfortunately, the parser (tokenizer?) chokes on variables with "." in the name.
This makes it very difficult to debug other transformations when working with PyTorch models.
Unfortunately it's not totally trivial to fix this because tuples use "." for element access. Maybe the PyTorch importer / all variable creation should excise "."s from variable names, but I could see that breaking scripts that currently work.
The text was updated successfully, but these errors were encountered:
Expected behavior
AnnotateSpans should work on modules imported from Pytorch.
Actual behavior
It fails, because the PyTorch importer creates variables with "." in their names. AnnotateSpans works by pretty-printing and then re-parsing a module. Unfortunately, the parser (tokenizer?) chokes on variables with "." in the name.
This makes it very difficult to debug other transformations when working with PyTorch models.
Environment
Ubuntu LTS, latest TVM main, torch 1.8.0
Steps to reproduce
Output:
Unfortunately it's not totally trivial to fix this because tuples use "." for element access. Maybe the PyTorch importer / all variable creation should excise "."s from variable names, but I could see that breaking scripts that currently work.
The text was updated successfully, but these errors were encountered: