trunk/10dc63912abee5b1c6b942e670872e515cbf9210: [CPP FakeTensor] Don't look up the op in register_fake (#200798)
- PyTorch 近 90 天出现 2301 次
- PyTorch 近 90 天第 2271 次发版
- 上一次:同一天稍早 · trunk/6b25e6c6fb0fb234fe49335ee55131840897135f
发生了什么
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…
摘要按规则整理自下方来源原文