From c053bf2a573313ff97a73c7e5fc55041361d3667 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Wed, 30 Dec 2020 21:56:07 +0800 Subject: [PATCH] Revert "register ModifyAttr for instance_norm, test=op_version (#29938)" --- paddle/fluid/operators/instance_norm_op.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/paddle/fluid/operators/instance_norm_op.cc b/paddle/fluid/operators/instance_norm_op.cc index 28643ac1c0d..1018adcd930 100644 --- a/paddle/fluid/operators/instance_norm_op.cc +++ b/paddle/fluid/operators/instance_norm_op.cc @@ -17,7 +17,6 @@ limitations under the License. */ #include #include #include "paddle/fluid/framework/data_layout.h" -#include "paddle/fluid/framework/op_version_registry.h" #include "paddle/fluid/operators/math/math_function.h" namespace paddle { @@ -702,20 +701,3 @@ REGISTER_OP_CPU_KERNEL( float>, ops::InstanceNormDoubleGradKernel); - -REGISTER_OP_VERSION(instance_norm) - .AddCheckpoint( - R"ROC( - Change dispensable of attribute from False to True in instance_norm. - )ROC", - paddle::framework::compatible::OpVersionDesc() - .ModifyAttr( - "Bias", - "The arg 'dispensable' of Input 'Bias' is changed: from " - "'False' to 'True'.", - true) - .ModifyAttr( - "Scale", - "The arg 'dispensable' of Input 'Scale' is changed: from " - "'False' to 'True'.", - true)); -- GitLab