未验证 提交 2e0c8678 编写于 作者: Z zhangbo9674 提交者: GitHub

fix bug (#54363)

上级 c4c70152
......@@ -15,9 +15,9 @@
#include <gtest/gtest.h>
#include "paddle/fluid/ir/dialect/pd_dialect.h"
#include "paddle/fluid/ir/dialect/pd_interface.h"
#include "paddle/fluid/ir/dialect/pd_type.h"
#include "paddle/fluid/ir/dialect/utils.h"
#include "paddle/fluid/ir/interface/op_yaml_info.h"
#include "paddle/ir/core/builtin_attribute.h"
#include "paddle/ir/core/builtin_dialect.h"
#include "paddle/ir/core/builtin_op.h"
......
......@@ -15,10 +15,10 @@
#pragma once
#include "paddle/fluid/ir/dialect/pd_dialect.h"
#include "paddle/fluid/ir/dialect/pd_interface.h"
#include "paddle/fluid/ir/dialect/pd_op.h"
#include "paddle/fluid/ir/dialect/pd_type.h"
#include "paddle/fluid/ir/dialect/utils.h"
#include "paddle/fluid/ir/interface/op_yaml_info.h"
#include "paddle/ir/core/builtin_attribute.h"
#include "paddle/ir/core/builtin_dialect.h"
#include "paddle/ir/core/builtin_op.h"
......@@ -94,8 +94,8 @@ void build_context(ir::Operation* op,
paddle::framework::Scope* scope,
T* ctx,
bool is_infer_meta = true) {
paddle::dialect::GetOpInfoInterface op_info_interface =
op->dyn_cast<paddle::dialect::GetOpInfoInterface>();
paddle::dialect::OpYamlInfoInterface op_info_interface =
op->dyn_cast<paddle::dialect::OpYamlInfoInterface>();
auto op_info_res = op_info_interface.GetOpInfo();
auto input_info = std::get<0>(op_info_res);
......@@ -188,8 +188,8 @@ class PhiKernelAdaptor {
interface.InferShape(&ctx);
paddle::dialect::GetOpInfoInterface op_info_interface =
(*it)->dyn_cast<paddle::dialect::GetOpInfoInterface>();
paddle::dialect::OpYamlInfoInterface op_info_interface =
(*it)->dyn_cast<paddle::dialect::OpYamlInfoInterface>();
auto op_info_res = op_info_interface.GetOpInfo();
auto runtime_info = std::get<3>(op_info_res);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册