trunk/4109cbc8d05d541dd0a7a2feac4490bef16d43c5: torch/_native: allow overrides on namespaces other than aten (#194509)
- PyTorch: 1219 events in the last 90 days
- PyTorch: 1205th Release in the last 90 days
- Previous: earlier the same day · trunk/1579dafc271f285bc780fd69264e6a2d49cd342c: [CI] Enable ACL in ARM64 CUDA images (#197741)
What happened
torch._native could override aten ops only. Since linear_cross_entropy lives in torch/nn and its chunked ops are registered in the torch_nn namespace, the registry has to accept any namespace, which is what this commit does. The override registry could only install kernels on the aten namespace: register_op_override rejected any other lib_symbol , and the internals hardcoded aten when resolving the op, cloning its s…
Summary assembled by rule from the sources below