1#pragma once
2
3#include <ostream>
4#include <string>
5
6#include <c10/core/Scalar.h>
7#include <ATen/core/Tensor.h>
8
9namespace c10 {
10TORCH_API std::ostream& operator<<(std::ostream& out, Backend b);
11TORCH_API std::ostream& operator<<(std::ostream & out, const Scalar& s);
12TORCH_API std::string toString(const Scalar& s);
13}
14namespace at {
15
16TORCH_API std::ostream& operator<<(std::ostream& out, const DeprecatedTypeProperties& t);
17TORCH_API std::ostream& print(
18 std::ostream& stream,
19 const Tensor& tensor,
20 int64_t linesize);
21static inline std::ostream& operator<<(std::ostream & out, const Tensor & t) {
22 return print(out,t,80);
23}
24TORCH_API void print(const Tensor & t, int64_t linesize=80);
25}
26