3 #include <c10/core/Scalar.h> 4 #include <ATen/core/Tensor.h> 5 #include <ATen/core/TensorMethods.h> 6 #include <ATen/core/Type.h> 11 CAFFE2_API std::ostream& operator<<(std::ostream& out,
Backend b);
15 CAFFE2_API std::ostream& operator<<(std::ostream& out,
const Type& t);
16 CAFFE2_API std::ostream& print(
20 static inline std::ostream& operator<<(std::ostream & out,
const Tensor & t) {
21 return print(out,t,80);
23 static inline void print(
const Tensor & t, int64_t linesize=80) {
24 print(std::cout,t,linesize);
27 static inline std::ostream& operator<<(std::ostream & out, Scalar s) {
28 return out << (s.isFloatingPoint() ? s.toDouble() : s.toLong());
Backend
This legacy enum class defines the set of backends supported by old school, code generated Type-based...
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...
Flush-To-Zero and Denormals-Are-Zero mode.