Open hanwen-sun opened 3 days ago
This error indicates that MagPy detects print
has side effect, and throws an error to generate graph break. But the handling of graph break in the middle of user code is not very stable.
You can try this flag to fall back to pure pytorch execution without compilation when MagPy meets some problem
https://github.com/heheda12345/MagPy/blob/9819fc3242baa6509d7056bff70ba1d2126219dd/frontend/config.py#L9
Hello, I want to know whether magpy support side effect function like print. Dynamo will break the graph when meeting print. I write a simple demo to test magpy, but it seems that magpy do not support print. The test demo is:
And the output is:
There's no graph and guard function output.