benchmark
78745baf - Log exception_stack_trace to dynamo_compile (#161096)

Commit
118 days ago
Log exception_stack_trace to dynamo_compile (#161096) Summary: Note: Adding unit test for this is tricky as having errors in the specific unit test would cause test_utils.py to crash all together. Tested as follows: 1. Added x = 1/0 after guarded_code = compile_inner(code, one_graph, hooks, transform) in convert_frame.py 2. Printed exception_stack_trace and got: ['Traceback (most recent call last):\n File "/data/users/jovian/pytorch/torch/_dynamo/convert_frame.py", line 1207, in _compile\n x = 1/0\n ~^~\nZeroDivisionError: division by zero\n'] X-link: https://github.com/pytorch/pytorch/pull/161096 Approved by: https://github.com/c00w Reviewed By: seemethere Differential Revision: D80776058 fbshipit-source-id: 3531dc2df17f8f18a78c13551950563ef3a46059
Author
Parents
Loading