Restore does not work as expected after changing ostream type.
Added because there is no code to restore the variable out.
Changed the code where the nesting depth was set incorrectly to the
correct location.
Signed-off-by: SeoHyungjun <hyungjun.seo@samsung.com>
}
out << "-------" << std::endl;
}
- out.copyfmt(init);
}
+ out.copyfmt(init);
} else if (getDataType() == ml::train::TensorDim::DataType::FP16) {
#ifdef ENABLE_FP16
const _FP16 *data = getData<_FP16>();
}
out << "-------" << std::endl;
}
- out.copyfmt(init);
}
+ out.copyfmt(init);
#else
throw std::invalid_argument("Error: enable-fp16 is not enabled");
#endif
out << getData<float>()[i] << ", ";
}
}
+ out.copyfmt(init);
}
std::ostream &operator<<(std::ostream &out, Tensor const &m) {