Files
pytorch/test/edge/templates/RegisterDispatchKeyCustomOps.cpp
PyTorch MergeBot 67067512a1 Revert "[BE] Cleanup old ExecuTorch codegen and runtime code (#154165)"
This reverts commit 515c19a3856e953c0fe23a0ed4fa844f8eea34d8.

Reverted https://github.com/pytorch/pytorch/pull/154165 on behalf of https://github.com/seemethere due to This is failing when attempting to test against executorch main internally, author has acknowledged that this should be reverted ([comment](https://github.com/pytorch/pytorch/pull/154165#issuecomment-2931489616))
2025-06-02 16:28:46 +00:00

28 lines
499 B
C++

// clang-format off
// Generated code for registering custom operators into the dispatcher.
#include <torch/library.h>
#include <ATen/Tensor.h>
$ops_headers
namespace torch {
namespace executor {
namespace function {
${dispatch_anonymous_definitions}
// All out variants ops
${static_init_dispatch_registrations}
namespace ${dispatch_namespace}
{
${dispatch_namespaced_definitions}
} // namespace ${dispatch_namespace}
} // namespace function
} // namespace executor
} // namespace torch