Skip to content

Commit 0695c1f

Browse files
committed
Add remind for code
test=develop
1 parent 0c5c4c4 commit 0695c1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/fluid/operators/lookup_table_op.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class LookupTableOpMaker : public framework::OpProtoAndCheckerMaker {
8181
"Otherwise the given value indicates padding the output "
8282
"with zeros whenever lookup encounters it in Ids.")
8383
.SetDefault(kNoPadding);
84+
// NOTE(minqiyang): grad_inplace is an temporal attribute,
85+
// please do NOT set this attribute in python layer.
8486
AddAttr<bool>("grad_inplace",
8587
"(boolean, default false) "
8688
"If the grad op reuse the input's variable.")

0 commit comments

Comments
 (0)