未验证 提交 7d8d50b6 编写于 作者: Z Zeng Jinle 提交者: GitHub

rename no_need_buffer_vars macro, test=develop (#23160)

上级 05c00af5
...@@ -348,10 +348,10 @@ DECLARE_INPLACE_OP_INFERER(ElementwiseGradOpInplace, ...@@ -348,10 +348,10 @@ DECLARE_INPLACE_OP_INFERER(ElementwiseGradOpInplace,
framework::GradVarName("X")}); framework::GradVarName("X")});
DECLARE_INPLACE_OP_INFERER(ElementwiseDoubleGradOpInplace, {"DDX", "DDOut"}); DECLARE_INPLACE_OP_INFERER(ElementwiseDoubleGradOpInplace, {"DDX", "DDOut"});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(ElementwiseGradNoBufVarsInference, "X", DECLARE_NO_NEED_BUFFER_VARS_INFERER(ElementwiseGradNoBufVarsInference, "X",
"Y"); "Y");
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(ElementwiseDoubleGradNoBufVarsInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(ElementwiseDoubleGradNoBufVarsInference,
"Y", "DOut"); "Y", "DOut");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -113,7 +113,7 @@ class ExpandAsGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -113,7 +113,7 @@ class ExpandAsGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(ExpandAsGradNoNeedBufVarsInferer, "X"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(ExpandAsGradNoNeedBufVarsInferer, "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -214,7 +214,7 @@ class ExpandGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -214,7 +214,7 @@ class ExpandGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(ExpandGradNoNeedBufVarsInferer, "X"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(ExpandGradNoNeedBufVarsInferer, "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -73,8 +73,8 @@ class FillZerosLikeOp2Maker : public FillZerosLikeOpMaker { ...@@ -73,8 +73,8 @@ class FillZerosLikeOp2Maker : public FillZerosLikeOpMaker {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(FillZerosLikeOp2NoNeedBufferVarsInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(FillZerosLikeOp2NoNeedBufferVarsInference,
"X"); "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -246,8 +246,7 @@ DECLARE_INPLACE_OP_INFERER(FlattenOpInplaceInToOut, {"X", "Out"}); ...@@ -246,8 +246,7 @@ DECLARE_INPLACE_OP_INFERER(FlattenOpInplaceInToOut, {"X", "Out"});
DECLARE_INPLACE_OP_INFERER(FlattenGradInplaceinToOut, DECLARE_INPLACE_OP_INFERER(FlattenGradInplaceinToOut,
{framework::GradVarName("Out"), {framework::GradVarName("Out"),
framework::GradVarName("X")}); framework::GradVarName("X")});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(FlattenGradNoNeedBufferVarsInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(FlattenGradNoNeedBufferVarsInference, "X");
"X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -161,8 +161,7 @@ class GatherNdGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -161,8 +161,7 @@ class GatherNdGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(GatherNdGradNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(GatherNdGradNoNeedBufferVarInference, "X");
"X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -123,7 +123,7 @@ class GatherGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -123,7 +123,7 @@ class GatherGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(GatherGradNoNeedBufferVarInference, "X"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(GatherGradNoNeedBufferVarInference, "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -417,8 +417,8 @@ class GRUGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -417,8 +417,8 @@ class GRUGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(GRUGradOpNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(GRUGradOpNoNeedBufferVarInference, "Input",
"Input", "Bias"); "Bias");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -234,8 +234,8 @@ class GRUUnitGradOpMaker : public framework::SingleGradOpMaker<T> { ...@@ -234,8 +234,8 @@ class GRUUnitGradOpMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(GRUUnitGradOpNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(GRUUnitGradOpNoNeedBufferVarInference,
"Bias"); "Bias");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -287,7 +287,7 @@ class HierarchicalSigmoidGradOpGradVarTypeInference ...@@ -287,7 +287,7 @@ class HierarchicalSigmoidGradOpGradVarTypeInference
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE( DECLARE_NO_NEED_BUFFER_VARS_INFERER(
HierarchicalSigmoidGradOpNoNeedBufferVarInference, "Bias"); HierarchicalSigmoidGradOpNoNeedBufferVarInference, "Bias");
} // namespace operators } // namespace operators
......
...@@ -447,8 +447,8 @@ class InterpolateGradMaker : public framework::SingleGradOpMaker<T> { ...@@ -447,8 +447,8 @@ class InterpolateGradMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(InterpolateGradNoNeedBufferVarsInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(InterpolateGradNoNeedBufferVarsInference,
"X"); "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -160,8 +160,7 @@ class KLDivLossOpGradMaker : public framework::SingleGradOpMaker<T> { ...@@ -160,8 +160,7 @@ class KLDivLossOpGradMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(KLDivLossGradNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(KLDivLossGradNoNeedBufferVarInference, "X");
"X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -302,8 +302,8 @@ class LinearChainCRFGradMaker : public framework::SingleGradOpMaker<T> { ...@@ -302,8 +302,8 @@ class LinearChainCRFGradMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE( DECLARE_NO_NEED_BUFFER_VARS_INFERER(LinearChainCRFGradNoNeedBufferVarsInference,
LinearChainCRFGradNoNeedBufferVarsInference, "Transition", "Emission"); "Transition", "Emission");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -222,8 +222,7 @@ DECLARE_INPLACE_OP_INFERER(LoDResetGradInplaceInferer, ...@@ -222,8 +222,7 @@ DECLARE_INPLACE_OP_INFERER(LoDResetGradInplaceInferer,
{framework::GradVarName("Out"), {framework::GradVarName("Out"),
framework::GradVarName("X")}); framework::GradVarName("X")});
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(LoDResetGradNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(LoDResetGradNoNeedBufferVarInference, "X");
"X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -131,7 +131,7 @@ or not. And the output only shares the LoD information with input Ids. ...@@ -131,7 +131,7 @@ or not. And the output only shares the LoD information with input Ids.
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(LookupTableGradOpNoBuffer, "W"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(LookupTableGradOpNoBuffer, "W");
template <typename T> template <typename T>
class LookupTableGradOpMaker : public framework::SingleGradOpMaker<T> { class LookupTableGradOpMaker : public framework::SingleGradOpMaker<T> {
......
...@@ -118,7 +118,7 @@ or not. And the output only shares the LoD information with input Ids. ...@@ -118,7 +118,7 @@ or not. And the output only shares the LoD information with input Ids.
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(LookupTableV2GradOpNoBuffer, "W"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(LookupTableV2GradOpNoBuffer, "W");
template <typename T> template <typename T>
class LookupTableV2GradOpMaker : public framework::SingleGradOpMaker<T> { class LookupTableV2GradOpMaker : public framework::SingleGradOpMaker<T> {
......
...@@ -84,7 +84,7 @@ class MeanGradMaker : public framework::SingleGradOpMaker<T> { ...@@ -84,7 +84,7 @@ class MeanGradMaker : public framework::SingleGradOpMaker<T> {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(MeanGradNoNeedBufferVarsInference, "X"); DECLARE_NO_NEED_BUFFER_VARS_INFERER(MeanGradNoNeedBufferVarsInference, "X");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
...@@ -297,8 +297,7 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference { ...@@ -297,8 +297,7 @@ class NCEOpGradVarTypeInference : public framework::VarTypeInference {
} }
}; };
DECLARE_NO_NEED_BUFFER_VARS_INFERENCE(NCEGradOpNoNeedBufferVarInference, DECLARE_NO_NEED_BUFFER_VARS_INFERER(NCEGradOpNoNeedBufferVarInference, "Bias");
"Bias");
} // namespace operators } // namespace operators
} // namespace paddle } // namespace paddle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册