You need to sign in or sign up before continuing.
未验证 提交 6828f368 编写于 作者: Z Zeng Jinle 提交者: GitHub

fix op_registry, add ignore op_function_impl.h, test=develop (#21654)

上级 45d2fa4e
...@@ -170,8 +170,8 @@ struct OpInfoFiller<T, kOperator> { ...@@ -170,8 +170,8 @@ struct OpInfoFiller<T, kOperator> {
platform::errors::AlreadyExists( platform::errors::AlreadyExists(
"Duplicate InferShapeFN of %s has been registered", op_type)); "Duplicate InferShapeFN of %s has been registered", op_type));
auto* op = OperatorWithKernel* op = dynamic_cast<OperatorWithKernel*>(info->creator_(
dynamic_cast<OperatorWithKernel*>(info->creator_("", {}, {}, {})); std::string{}, VariableNameMap{}, VariableNameMap{}, AttributeMap{}));
PADDLE_ENFORCE_NOT_NULL(op, platform::errors::InvalidArgument( PADDLE_ENFORCE_NOT_NULL(op, platform::errors::InvalidArgument(
"%s should have kernels", op_type)); "%s should have kernels", op_type));
info->infer_shape_ = [op](InferShapeContext* ctx) { info->infer_shape_ = [op](InferShapeContext* ctx) {
......
pybind.h pybind.h
op_function_impl.h
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册