Skip to content

Commit

Permalink
Merged PR 13123: Print logs for the model conversion type
Browse files Browse the repository at this point in the history
Print logs for the model conversion type
  • Loading branch information
ykim362 committed May 28, 2020
1 parent 51b13bb commit 1e0e771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/command/marian_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int main(int argc, char** argv) {
ABORT("Unknown gemm-type: {}", saveGemmTypeStr);
}

LOG(info, "Outputting {}", modelTo);
LOG(info, "Outputting {}, precision: {}", modelTo, saveGemmType);

YAML::Node config;
std::stringstream configStr;
Expand Down
4 changes: 2 additions & 2 deletions src/microsoft/quicksand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ DecoderCpuAvxVersion parseCpuAvxVersion(std::string name) {

// @TODO: clean-up this code and unify with marian-conv. The targetPrec parameter is not clear enought etc.
bool convertModel(std::string inputFile, std::string outputFile, int32_t targetPrec) {
std::cout << "Converting from: " << inputFile << ", to: " << outputFile << std::endl;
std::cerr << "Converting from: " << inputFile << ", to: " << outputFile << ", precision: " << targetPrec << std::endl;

YAML::Node config;
std::stringstream configStr;
Expand All @@ -268,7 +268,7 @@ bool convertModel(std::string inputFile, std::string outputFile, int32_t targetP
// added a flag if the weights needs to be packed or not
graph->packAndSave(outputFile, configStr.str(), saveGemmType);

std::cout << "Conversion Finished." << std::endl;
std::cerr << "Conversion Finished." << std::endl;

return true;
}
Expand Down

0 comments on commit 1e0e771

Please sign in to comment.