Skip to content

Commit

Permalink
Merge branch 'fix-log-display-kingsleyl' into 'v3.5-integration'
Browse files Browse the repository at this point in the history
Fix the log display of Model.summary()

See merge request dl/hugectr/hugectr!696
  • Loading branch information
zehuanw committed Mar 1, 2022
2 parents c8e5d75 + 4452a5f commit 0bc1c8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions HugeCTR/src/pybind/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,11 +1060,10 @@ void Model::summary() {
for (auto tensor_entry : train_tensor_entries_list_[0]) {
tensor_shape_info_.insert(std::make_pair(tensor_entry.name, tensor_entry.bag.get_dimensions()));
}

HCTR_PRINT(INFO,
"===================================================Model "
"Summary===================================================\n");
auto log = HCTR_LOG_S(INFO, ROOT);
log << "===================================================Model "
"Summary==================================================="
<< std::endl;
log << std::left << std::setw(40) << std::setfill(' ') << "label" << std::left << std::setw(30)
<< std::setfill(' ') << "Dense" << std::left << std::setw(30) << std::setfill(' ') << "Sparse"
<< std::endl;
Expand Down

0 comments on commit 0bc1c8a

Please sign in to comment.