Report the names of unsupported operators in flatbuffer_loader.cpp (#73865)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73865
- Report the names of unsupported operators in `flatbuffer_loader.cpp`:
```
TORCH_CHECK(
unsupported_op_names.empty(),
"Unsupported ops: ",
c10::Join(", ", unsupported_op_names));
```
- Use `TORCH_CHECK` instead of `AT_ASSERT` because `AT_ASSERT` is deprecated (see https://www.internalfb.com/code/fbsource/[9fbf30fa6401f8b341c3100c90f9d929a8ad7f9b]/fbcode/caffe2/c10/util/Exception.h?lines=585)
Test Plan: CI
Reviewed By: qihqi
Differential Revision: D34635838
fbshipit-source-id: e95d3369d66c18d312fe56c1f44606fe86504947
(cherry picked from commit d9c33d8383486d87c5343ddeb5a13d311c007425)