mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
This reverts commit 515c19a385.
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
|