27#include <c10/util/ArrayRef.h>
28#include <c10/core/TensorOptions.h>
29#include <c10/core/Scalar.h>
44constexpr auto kInt8 = c10::kChar;
53constexpr auto kCPU = c10::DeviceType::CPU;
54constexpr auto kCUDA = c10::DeviceType::CUDA;
56template <
typename T,
unsigned N>
92constexpr auto eps = std::numeric_limits<double>::epsilon();
93constexpr double sqrt2 = 1.4142135623730951;
Definition DiagnosticsInterface.cxx:30
c10::Device Device
Definition types.h:63
constexpr auto kInt8
Fixed width dtypes (mirroring the definition in <torch/csrc/api/include/torch/types....
Definition types.h:44
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:66
constexpr auto kFloat64
Definition types.h:50
double machine_precision(Dtype dtype)
Definition types.cxx:34
constexpr auto kInt16
Definition types.h:45
c10::SmallVector< T, N > SmallVector
Definition types.h:57
constexpr auto eps
Constants.
Definition types.h:92
at::Tensor ATensor
Definition types.h:38
constexpr auto kInt32
Definition types.h:46
c10::ArrayRef< T > ArrayRef
Definition types.h:59
int64_t Size
Definition types.h:65
constexpr auto kInt64
Definition types.h:47
c10::Scalar CScalar
Definition types.h:39
constexpr double invsqrt2
Definition types.h:94
FType
Role in a function definition.
Definition types.h:82
c10::TensorOptions TensorOptions
Definition types.h:60
std::ostream & operator<<(std::ostream &os, const EnumSelection &es)
Definition EnumSelection.cxx:31
constexpr double sqrt2
Definition types.h:93
c10::ArrayRef< Size > TensorShapeRef
Definition types.h:67
constexpr auto kCPU
Definition types.h:53
c10::ScalarType Dtype
Definition types.h:61
c10::DeviceIndex DeviceIndex
Definition types.h:62
constexpr auto kFloat16
Definition types.h:48
constexpr auto kFloat32
Definition types.h:49
constexpr auto kCUDA
Definition types.h:54