60 lines
1.2 KiB
C++
60 lines
1.2 KiB
C++
#include <c10/core/TensorImpl.h>
|
|
#include <c10/core/Allocator.h>
|
|
#include <ATen/DeviceGuard.h>
|
|
#include <ATen/NativeFunctions.h>
|
|
#include <ATen/MetaFunctions.h>
|
|
#include <ATen/NamedTensorUtils.h>
|
|
#include <ATen/Utils.h>
|
|
#include <ATen/WrapDimUtils.h>
|
|
#include <ATen/Dispatch.h>
|
|
#include <c10/util/Half.h>
|
|
#include <c10/core/UndefinedTensorImpl.h>
|
|
#include <c10/util/Optional.h>
|
|
#include <ATen/Tensor.h>
|
|
#include <ATen/Functions.h>
|
|
#include <ATen/native/Resize.h>
|
|
|
|
#include <cstddef>
|
|
#include <functional>
|
|
#include <memory>
|
|
#include <utility>
|
|
|
|
#include <ATen/Config.h>
|
|
#include <torch/library.h>
|
|
#include <torch/csrc/autograd/function.h>
|
|
#include <torch/csrc/jit/frontend/tracer.h>
|
|
|
|
#include "torch_npu/csrc/aten/NPUNativeFunctions.h"
|
|
#include "torch_npu/csrc/aten/VariableType.h"
|
|
#include "torch_npu/csrc/core/npu/NPUException.h"
|
|
#include "torch_npu/csrc/core/npu/NPURecovery.h"
|
|
#include "op_plugin/OpInterface.h"
|
|
|
|
namespace at_npu {
|
|
|
|
namespace native {
|
|
|
|
${custom_op_definitions}
|
|
|
|
namespace {
|
|
|
|
TORCH_LIBRARY(npu, m) {
|
|
|
|
${custom_schema_registrations}
|
|
}
|
|
|
|
} // anonymous namespace
|
|
|
|
namespace {
|
|
|
|
TORCH_LIBRARY_IMPL(npu, PrivateUse1, m) {
|
|
|
|
${custom_impl_registrations}
|
|
}
|
|
|
|
} // anonymous namespace
|
|
|
|
} // namespace native
|
|
|
|
} // namespace at_npu
|