提交 189ccb86 编写于 作者: H HuangBingjian

Change the indent for float16

上级 1b699234
......@@ -205,8 +205,13 @@ class TensorDataImpl : public TensorData {
if (isScalar) {
ss << value;
} else {
ss << std::setw(15) << std::setprecision(8) << std::setiosflags(std::ios::scientific | std::ios::right)
<< value;
if (std::is_same<T, float16>::value) {
ss << std::setw(11) << std::setprecision(4) << std::setiosflags(std::ios::scientific | std::ios::right)
<< value;
} else {
ss << std::setw(15) << std::setprecision(8) << std::setiosflags(std::ios::scientific | std::ios::right)
<< value;
}
}
linefeedThreshold = kThreshold1DFloat;
} else if (type == kNumberTypeBool) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册