27#include <c10/util/ArrayRef.h>
28#include <c10/core/TensorOptions.h>
47constexpr auto kInt8 = c10::kChar;
56constexpr auto kCPU = c10::DeviceType::CPU;
57constexpr auto kCUDA = c10::DeviceType::CUDA;
59template <
typename T,
unsigned N>
101constexpr auto eps = std::numeric_limits<Real>::epsilon();
c10::ArrayRef< TensorIndex > TensorIndicesRef
Definition types.h:78
c10::SmallVector< TensorIndex, 8 > TensorIndices
Definition types.h:77
Definition DiagnosticsInterface.cxx:30
c10::Device Device
Definition types.h:66
constexpr auto kInt8
Fixed width dtypes (mirroring the definition in <torch/csrc/api/include/torch/types....
Definition types.h:47
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:71
constexpr auto kFloat64
Definition types.h:53
int64_t Integer
Definition types.h:70
constexpr auto kInt16
Definition types.h:48
c10::SmallVector< T, N > SmallVector
Definition types.h:60
constexpr Real invsqrt2
Definition types.h:103
constexpr auto eps
Constants.
Definition types.h:101
at::Tensor ATensor
Definition types.h:42
double Real
Definition types.h:68
constexpr auto kInt32
Definition types.h:49
c10::ArrayRef< T > ArrayRef
Definition types.h:62
int64_t Size
Definition types.h:69
constexpr auto kInt64
Definition types.h:50
FType
Role in a function definition.
Definition types.h:91
@ BUFFER
Definition types.h:96
@ OUTPUT
Definition types.h:94
@ INPUT
Definition types.h:93
@ NONE
Definition types.h:92
@ PARAMETER
Definition types.h:95
c10::TensorOptions TensorOptions
Definition types.h:63
std::ostream & operator<<(std::ostream &os, const EnumSelection &es)
Definition EnumSelection.cxx:32
c10::ArrayRef< Size > TensorShapeRef
Definition types.h:72
constexpr auto kCPU
Definition types.h:56
constexpr Real sqrt2
Definition types.h:102
c10::ScalarType Dtype
Definition types.h:64
c10::DeviceIndex DeviceIndex
Definition types.h:65
constexpr auto kFloat16
Definition types.h:51
constexpr auto kFloat32
Definition types.h:52
constexpr auto kCUDA
Definition types.h:57