Change the indent for float16

pull/3679/head
HuangBingjian 5 years ago
parent 1b69923472
commit 189ccb86ab

@ -205,8 +205,13 @@ class TensorDataImpl : public TensorData {
if (isScalar) { if (isScalar) {
ss << value; ss << value;
} else { } else {
ss << std::setw(15) << std::setprecision(8) << std::setiosflags(std::ios::scientific | std::ios::right) if (std::is_same<T, float16>::value) {
<< 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; linefeedThreshold = kThreshold1DFloat;
} else if (type == kNumberTypeBool) { } else if (type == kNumberTypeBool) {

Loading…
Cancel
Save