You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make duplicate def() calls an error in the dispatcher (pytorch#48098)
Summary: Pull Request resolved: pytorch#48098
Test Plan:
Imported from OSS
***
make duplicate def() calls an error in the dispatcher. Updating all fb operators to use the new dispatcher registration API
Reviewed By: ezyang
Differential Revision: D25056089
Pulled By: bdhirsh
fbshipit-source-id: 8d7e381f16498a69cd20e6955d69acdc9a1d2791
TORCH_CHECK(op.schema() == schema, "Tried to register multiple operators with the same name and the same overload name but different schemas: ", schema, " (", debug, ") vs ", op.schema(), " (", op.debug(), ")");
156
-
if (schema.isDefaultAliasAnalysisKind()) {
157
-
// [BACKWARDS COMPAT] If the *new* schema is the default alias analysis
158
-
// kind, for BC, we will accept it. If we don't accept it, most extensions
159
-
// that override existing operators will stop working (as they generally did
0 commit comments