Skip to content

Commit

Permalink
[eager][utils] fix GRAD_SLOT_META_TEMPLATE fmt error (PaddlePaddle#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil authored Apr 10, 2024
1 parent 65f15b3 commit 12888a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/eager/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,8 @@ std::string EagerUtils::GradNodeStr(const egr::GradNodeBase& node) {
in_slot_str +=
paddle::string::Sprintf(SLOT_INFO_TEMPLATE, i, sg_str, edges_str);
}
std::string in_meta_str =
paddle::string::Sprintf(GRAD_SLOT_META_TEMPLATE, in_slot_str);
std::string in_meta_str = paddle::string::Sprintf(
GRAD_SLOT_META_TEMPLATE, in_metas.size(), in_slot_str);
return paddle::string::Sprintf(
GRAD_NODE_TEMPLATE, out_meta_str, in_meta_str);
} else if (VLOG_IS_ON(5)) {
Expand Down

0 comments on commit 12888a3

Please sign in to comment.