You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.5 KiB

#if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
#pragma once
// @generated by torchgen/gen.py from Function.h
#include <ATen/Context.h>
#include <ATen/DeviceGuard.h>
#include <ATen/TensorUtils.h>
#include <ATen/TracerMode.h>
#include <ATen/core/Generator.h>
#include <ATen/core/Reduction.h>
#include <ATen/core/Tensor.h>
#include <c10/core/Scalar.h>
#include <c10/core/Storage.h>
#include <c10/core/TensorOptions.h>
#include <c10/util/Deprecated.h>
#include <optional>
#include <string_view>
#include <ATen/ops/fill_ops.h>
namespace at {
// aten::fill.Scalar(Tensor self, Scalar value) -> Tensor
inline at::Tensor fill(const at::Tensor & self, const at::Scalar & value) {
return at::_ops::fill_Scalar::call(self, value);
}
// aten::fill.Tensor(Tensor self, Tensor value) -> Tensor
inline at::Tensor fill(const at::Tensor & self, const at::Tensor & value) {
return at::_ops::fill_Tensor::call(self, value);
}
// aten::fill_.Scalar(Tensor(a!) self, Scalar value) -> Tensor(a!)
inline at::Tensor & fill_(at::Tensor & self, const at::Scalar & value) {
return at::_ops::fill__Scalar::call(self, value);
}
// aten::fill_.Tensor(Tensor(a!) self, Tensor value) -> Tensor(a!)
inline at::Tensor & fill_(at::Tensor & self, const at::Tensor & value) {
return at::_ops::fill__Tensor::call(self, value);
}
// aten::fill.Scalar_out(Tensor self, Scalar value, *, Tensor(a!) out) -> Tensor(a!)
inline at::Tensor & fill_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & value) {
return at::_ops::fill_Scalar_out::call(self, value, out);
}
// aten::fill.Scalar_out(Tensor self, Scalar value, *, Tensor(a!) out) -> Tensor(a!)
inline at::Tensor & fill_outf(const at::Tensor & self, const at::Scalar & value, at::Tensor & out) {
return at::_ops::fill_Scalar_out::call(self, value, out);
}
// aten::fill.Tensor_out(Tensor self, Tensor value, *, Tensor(a!) out) -> Tensor(a!)
inline at::Tensor & fill_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & value) {
return at::_ops::fill_Tensor_out::call(self, value, out);
}
// aten::fill.Tensor_out(Tensor self, Tensor value, *, Tensor(a!) out) -> Tensor(a!)
inline at::Tensor & fill_outf(const at::Tensor & self, const at::Tensor & value, at::Tensor & out) {
return at::_ops::fill_Tensor_out::call(self, value, out);
}
}
#else
#error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
#endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)