Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do to convert UnsupportedFakeTensorException into RuntimeError in run…
…Node for proper graph breaking. (#120026) Summary: Fix: pytorch/pytorch#119779 by properly graph breaking a proper fix is to handle quantized tensors for full complete solution. if when generating a fake tensor, UnsupportedFakeTensorException is thrown, then its handled and converted into a Unimplemented in inside wrap_fake_exception which is then translated to a graph break. However run_node used to convert UnsupportedFakeTensorException into a runtime error, creating runtime errors instead of graph breaks whenever generating a fake tensor for a quantized tensor fails. X-link: pytorch/pytorch#120026 Approved by: https://github.com/jansel Reviewed By: huydhn Differential Revision: D53879832 Pulled By: laithsakka fbshipit-source-id: 1d2b7af0c9882d74fc6456474a79ad0709ba8ff7
- Loading branch information