Skip to content

Commit 4b2eb0b

Browse files
committed
Remove the redundant layer of brackets from the output of show_tensor
1 parent c2e7b1a commit 4b2eb0b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/fdeep/tensor.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -896,11 +896,10 @@ inline std::string show_tensor(const tensor& t)
896896
const auto strs = fplus::transform(
897897
fplus::fwd::show_float_fill_left(' ', max_length, 4), xs);
898898
return fplus::show_cont(
899-
fplus::split_every(t.shape().size_dim_5_,
900-
fplus::split_every(t.shape().size_dim_4_,
901-
fplus::split_every(t.shape().height_,
902-
fplus::split_every(t.shape().width_,
903-
fplus::split_every(t.shape().depth_, strs))))));
899+
fplus::split_every(t.shape().size_dim_4_,
900+
fplus::split_every(t.shape().height_,
901+
fplus::split_every(t.shape().width_,
902+
fplus::split_every(t.shape().depth_, strs)))));
904903
}
905904

906905
inline std::string show_tensors(const tensors& ts)

0 commit comments

Comments
 (0)