fix op_register_version for compare ops, test=op_version (#30007)

Co-authored-by: zhoushunjie <zhoushunjie@baidu.com>
revert-31562-mean
channings 5 years ago committed by GitHub
parent 66e16b7e99
commit ddcff254db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -133,9 +133,9 @@ class CompareOp : public framework::OperatorWithKernel {
REGISTER_OP_VERSION(op_type) \
.AddCheckpoint( \
R"ROC(Upgrade compare ops, add a new attribute [force_cpu])ROC", \
paddle::framework::compatible::OpVersionDesc().NewAttr( \
paddle::framework::compatible::OpVersionDesc().ModifyAttr( \
"force_cpu", \
"In order to force fill output variable to cpu memory.", \
"In order to force fill output variable to gpu memory.", \
false));
#define REGISTER_COMPARE_OP(op_type, _equation) \

Loading…
Cancel
Save