formatting od rank 0 tensor output with endl
This commit is contained in:
1 parent
1d53afd257
commit
375e690296
1 file changed
+1
-1
@@ -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