Make Paddle --save_dir support a directory name (#277)

* Also fix #243
avx_docs
luotao1 8 years ago committed by Yu Yang
parent 0e1a22d0fc
commit ca5a5ec480

@ -89,6 +89,9 @@ void ParameterUtil::saveParameters(int passId, int passInnerId) {
}
std::string basePath = config_->getSaveDir();
if (basePath.find('/') == std::string::npos) {
basePath = "./" + basePath;
}
mkDirRecursively(basePath.c_str());
std::string saveDir = path::join(basePath, buf);

Loading…
Cancel
Save