5 #include <c10/core/Scalar.h> 7 #include <ATen/TypeExtendedInterface.h> 8 #include <ATen/Tensor.h> 9 #include <c10/core/Storage.h> 10 #include <ATen/core/Generator.h> 11 #include <c10/util/Deprecated.h> 12 #include <ATen/NativeFunctions.h> 13 #include <ATen/DeviceGuard.h> 14 #include <c10/core/TensorOptions.h> 15 #include <ATen/core/Reduction.h> 16 #include <c10/util/Optional.h> 20 using native::from_blob;
23 ${function_declarations}
27 static inline TypeExtendedInterface & infer_type(
const Tensor & t) {
28 AT_CHECK(t.defined(),
"undefined Tensor");
31 static inline TypeExtendedInterface & infer_type(
const TensorList & tl) {
32 AT_CHECK(tl.size() > 0,
"expected a non-empty list of Tensors");
33 return getType(tl[0]);
41 ${function_definitions}
Flush-To-Zero and Denormals-Are-Zero mode.