From 7fcb9e37a9021547fc8ec35042b409cae3aaeb95 Mon Sep 17 00:00:00 2001 From: whs Date: Thu, 9 Sep 2021 14:29:50 +0800 Subject: [PATCH] Add extra flags for attr of affine_grid_op (#35581) --- paddle/fluid/operators/affine_grid_op.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/affine_grid_op.cc b/paddle/fluid/operators/affine_grid_op.cc index 7be9bced133..3125e005174 100644 --- a/paddle/fluid/operators/affine_grid_op.cc +++ b/paddle/fluid/operators/affine_grid_op.cc @@ -138,7 +138,8 @@ class AffineGridOpMaker : public framework::OpProtoAndCheckerMaker { AddAttr( "use_cudnn", "(bool, default false) Only used in cudnn kernel, need install cudnn") - .SetDefault(true); + .SetDefault(true) + .AsExtra(); AddAttr("align_corners", "(bool, default false) Whether to align the corners of input" "and ouput.") -- GitLab