benchmark
014395db - refactor frame skips and error messages in dynamo (#170587)

Commit
34 days ago
refactor frame skips and error messages in dynamo (#170587) Summary: Fixes https://github.com/pytorch/pytorch/issues/170242. There are a number of changes here to improve frame skip error messages: - SkipFrame is no longer used by Dynamo to signify graph breaks that should skip the frame. SkipFrame should now only be used to unconditionally skip the frame without a graph break. The `skip_frame` attribute of `Unsupported` is now used for graph breaks to signal a frame skip. - Uncaught `Unsupported`s (unhandled graph breaks) are now logged in symbolic_convert rather than convert_frame in order to improve logging consistency. (I kept the convert_frame call though since there are some `unimplemented` calls that occur outside of symbolic_convert). - Chained graph breaks (graph break in loop, graph break in generic ctx manager, reconstruction errors) have better error messages X-link: https://github.com/pytorch/pytorch/pull/170587 Approved by: https://github.com/Lucaskabela Reviewed By: clee2000 Differential Revision: D89855896 fbshipit-source-id: 5fb706591c25f6b7a14fd27be444927389fa649f
Author
Committer
Parents
Loading