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
The model was in evaluation mode, but it seems that one of the rewrites/replacements used in this lowering pass causes the above error. Disabling this lowering pass and recompiling the model causes the compilation to proceed normally.
The text was updated successfully, but these errors were encountered:
Bug Description
When compiling the BERT punctuation/capitalization model, the following error is encountered:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Model should successfully compile with Torch-TRT. Specifically, internal assertion errors of this sort should not occur.
Environment
python setup.py develop
Additional context + Temporary Solution
Upon inspecting the error in greater depth, it seems to occur in the Lowering phase, during the
RemoveDropout
lowering pass:TensorRT/core/lowering/passes/remove_dropout.cpp
Line 10 in 5fa6374
The model was in evaluation mode, but it seems that one of the rewrites/replacements used in this lowering pass causes the above error. Disabling this lowering pass and recompiling the model causes the compilation to proceed normally.
The text was updated successfully, but these errors were encountered: