mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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))
28 lines
499 B
C++
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
|