pytorch
7bc59623 - Trace asserts with fx by looking at byte code (#70960)

Commit
3 years ago
Trace asserts with fx by looking at byte code (#70960) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/70960 This patch uses some bytecode introspection logic to see if a boolean is being used as an assert condition and if so, it records the assert in the fx graph and allows the trace to continue. Test Plan: Imported from OSS Reviewed By: jamesr66a Differential Revision: D33570397 Pulled By: zdevito fbshipit-source-id: 99d26cede8fe42c96d4032d9353c1ede7eb3d969 (cherry picked from commit 30d002da25b8eca134d44d43596ce78c4ef8c221)
Author
Committer
Parents
Loading