未验证 提交 4eec94dd 编写于 作者: A Allen Guo 提交者: GitHub

fix compilation (#45087)

上级 bb8203cd
...@@ -80,6 +80,16 @@ struct CustomOpAttrVisitor { ...@@ -80,6 +80,16 @@ struct CustomOpAttrVisitor {
"Unsupported calling method for `paddle::blank` type when extracting " "Unsupported calling method for `paddle::blank` type when extracting "
"custom operator attributes.")); "custom operator attributes."));
} }
void operator()(framework::VarDesc*) const {
PADDLE_THROW(platform::errors::Unavailable(
"Unsupported calling method for `VarDesc*` type when extracting "
"custom operator attributes."));
}
void operator()(const std::vector<framework::VarDesc*>&) const {
PADDLE_THROW(platform::errors::Unavailable(
"Unsupported calling method for `std::vector<framework::VarDesc*>` "
"type when extracting custom operator attributes."));
}
}; };
struct ConstantOpAttrVisitor { struct ConstantOpAttrVisitor {
...@@ -131,6 +141,10 @@ struct ConstantOpAttrVisitor { ...@@ -131,6 +141,10 @@ struct ConstantOpAttrVisitor {
void operator()(const std::vector<BlockDesc*>& v) const { RAISE_ERROR; } void operator()(const std::vector<BlockDesc*>& v) const { RAISE_ERROR; }
void operator()(int64_t v) const { RAISE_ERROR; } void operator()(int64_t v) const { RAISE_ERROR; }
void operator()(paddle::blank) const { RAISE_ERROR; } void operator()(paddle::blank) const { RAISE_ERROR; }
void operator()(framework::VarDesc*) const { RAISE_ERROR; }
void operator()(const std::vector<framework::VarDesc*>&) const {
RAISE_ERROR;
}
#undef RAISE_ERROR #undef RAISE_ERROR
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册