add check for duplicated op registration in JIT (#41214)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/41214
Same as D21032976, add check for duplicated op name in JIT
Test Plan:
run full JIT predictor
also
buck test pytorch-playground
Reviewed By: smessmer
Differential Revision: D22467871
fbshipit-source-id: 9b7a40a217e6c63cca44cad54f9f657b8b207a45