Skip to content

Commit 7a751b8

Browse files
Superjomndzhwinter
authored andcommitted
fix isfinite_op sprintf (#13850)
test=develop
1 parent e3a64fc commit 7a751b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/fluid/operators/isfinite_op.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class OverflowOpMaker : public framework::OpProtoAndCheckerMaker {
6060
"(Tensor) 1-dim tensor, contains a bool scalar. The output "
6161
"tensor of overflow operator.");
6262
AddComment(string::Sprintf(R"DOC(
63-
Overflow operator.
63+
Overflow %s operator.
6464
6565
$$Out = any(X)$$
6666
@@ -69,6 +69,8 @@ Out = Inf if any X contains Inf,
6969
Out = Nan if any X contains Nan,
7070
Out = 0 if no Inf/Nan detected.
7171
If X contains both Inf/Nan, it will return the first indicator it meeted.
72+
73+
%s
7274
)DOC",
7375
GetName(), GetComments()));
7476
}

0 commit comments

Comments
 (0)