← Back to events
ActiveAIRelease

trunk/10dc63912abee5b1c6b942e670872e515cbf9210: [CPP FakeTensor] Don't look up the op in register_fake (#200798)

What happened

Summary: Forward fix for #199785 (D124671672). #199785 made FakeImplHolder.register call lookup_op(qualname)._schema to get the (name, overload) key for _fake_dispatch_register_custom_op_impl . lookup_op goes through torch.ops , which needs the op's schema to be defined. But register_fake has always worked before the schema is defined, as long as the dispatcher already knows the op (e.g. a C++ TORCH_LIBRARY_IMPL is…

Summary assembled by rule from the sources below

Why it's spreading

Sources