Skip to content

Commit df57df9

Browse files
authored
add AsExtra for grid_sampler_op (#35339)
1 parent 070cab1 commit df57df9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/operators/grid_sampler_op.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ class GridSampleOpMaker : public framework::OpProtoAndCheckerMaker {
100100
AddAttr<bool>(
101101
"use_cudnn",
102102
"(bool, default true) Only used in cudnn kernel, need install cudnn")
103-
.SetDefault(true);
103+
.SetDefault(true)
104+
.AsExtra();
104105

105106
AddAttr<bool>(
106107
"align_corners",

0 commit comments

Comments
 (0)