formatting od rank 0 tensor output with endl
This commit is contained in:
@@ -631,7 +631,7 @@ std::ostream & operator<<(std::ostream &s, const Tensor<T> &x)
|
|||||||
{
|
{
|
||||||
s<<x.shape;
|
s<<x.shape;
|
||||||
s<<x.names;
|
s<<x.names;
|
||||||
if(x.rank()==0) {s<<x.data[0]; return s;}
|
if(x.rank()==0) {s<<x.data[0]<<std::endl; return s;}
|
||||||
sout= &s;
|
sout= &s;
|
||||||
x.constloopover(&outputcallback<T>);
|
x.constloopover(&outputcallback<T>);
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Reference in New Issue
Block a user