Do to convert UnsupportedFakeTensorException into RuntimeError in runNode for proper graph breaking. (#120026)
Summary:
Fix: https://github.com/pytorch/pytorch/issues/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: https://github.com/pytorch/pytorch/pull/120026
Approved by: https://github.com/jansel
Reviewed By: huydhn
Differential Revision: D53879832
Pulled By: laithsakka
fbshipit-source-id: 1d2b7af0c9882d74fc6456474a79ad0709ba8ff7