Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder committed Oct 9, 2023
1 parent 4fa364d commit e5e3049
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions paddle/fluid/framework/ir/sync_batch_norm_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class SyncBatchNormPass : public Pass {
if (op->Type() == "batch_norm_grad") {
op->SetType("sync_batch_norm_grad");
}
if (op->Type() == "inplace_abn_grad") {
op->SetAttr("use_sync_bn", true);
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion paddle/fluid/framework/unused_var_check.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ static const std::unordered_set<std::string> &GetOpWithUnusedVarAllowSet() {
"batch_norm_grad", // 0
"sync_batch_norm", // 0
"sync_batch_norm_grad", // 0
"inplace_abn_grad", // 0
"dgc_momentum", // 0
"fake_quantize_range_abs_max", // 0
"rmsprop", // 0
Expand Down
10 changes: 0 additions & 10 deletions paddle/fluid/pybind/eager_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ std::map<std::string, std::set<std::string>> op_ins_map = {
{"crop", {"X", "Y", "Offsets"}},
{"batch_norm",
{"X", "Scale", "Bias", "Mean", "Variance", "MomentumTensor"}},
{"inplace_abn",
{"X", "Scale", "Bias", "Mean", "Variance", "MomentumTensor"}},
{"linear_interp", {"X", "OutSize"}},
{"bilinear_interp", {"X", "OutSize"}},
{"trilinear_interp", {"X", "OutSize"}},
Expand Down Expand Up @@ -297,13 +295,6 @@ std::map<std::string, std::set<std::string>> op_outs_map = {
"SavedVariance",
"ReserveSpace"}},
{"lstsq", {"Solution", "Residuals", "Rank", "SingularValues"}},
{"inplace_abn",
{"Y",
"MeanOut",
"VarianceOut",
"SavedMean",
"SavedVariance",
"ReserveSpace"}},
{"fused_attention", {"LnMean", "LnVariance",
"LnOut", "QKVOut",
"QKVBiasOut", "TransposeOut2",
Expand Down Expand Up @@ -485,7 +476,6 @@ std::map<std::string, std::set<std::string>> op_passing_outs_map = {
{"merged_momentum", {"ParamOut", "VelocityOut", "MasterParamOut"}},
{"sparse_momentum", {"ParamOut", "VelocityOut", "MasterParamOut"}},
{"batch_norm", {"MeanOut", "VarianceOut"}},
{"inplace_abn", {"MeanOut", "VarianceOut"}},
{"sync_batch_norm", {"MeanOut", "VarianceOut"}},
{"accuracy", {"Correct", "Total"}},
{"fill_constant", {"Out"}},
Expand Down
5 changes: 0 additions & 5 deletions paddle/phi/api/yaml/op_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1490,11 +1490,6 @@
attrs :
axis : dim

- op : inplace_abn
backward : inplace_abn_grad
extra :
attrs : [bool use_mkldnn = false, bool fuse_with_relu = false]

- op : instance_norm
inputs :
x : X
Expand Down

0 comments on commit e5e3049

Please sign in to comment.