未验证 提交 459ddf90 编写于 作者: L liuruyan 提交者: GitHub

[BugFix] fix unregister ops error. (#56618)

* fix windows_open_blas error.

* fix cmakelists.
上级 92080699
cc_test_old(assist_struct_test SRCS assist_struct_test.cc DEPS ir gtest) cc_test_old(
symbolic_op_test
SRCS
symbolic_op_test.cc
DEPS
pd_dialect
ir
gtest)
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <map> #include <map>
#include "paddle/fluid/ir/dialect/paddle_dialect/ir/pd_dialect.h"
#include "paddle/fluid/ir/dialect/paddle_dialect/ir/pd_type.h" #include "paddle/fluid/ir/dialect/paddle_dialect/ir/pd_type.h"
#include "paddle/ir/core/block.h" #include "paddle/ir/core/block.h"
#include "paddle/ir/core/builder.h" #include "paddle/ir/core/builder.h"
...@@ -97,6 +98,7 @@ TEST(assist_struct_test, symbolic_dim_mgr) { ...@@ -97,6 +98,7 @@ TEST(assist_struct_test, symbolic_dim_mgr) {
ir::IrContext *ctx = ir::IrContext::Instance(); ir::IrContext *ctx = ir::IrContext::Instance();
ir::Program program(ctx); ir::Program program(ctx);
ctx->GetOrRegisterDialect<ir::dialect::ShapeDialect>(); ctx->GetOrRegisterDialect<ir::dialect::ShapeDialect>();
ctx->GetOrRegisterDialect<paddle::dialect::PaddleDialect>();
ir::SymbolicDimMgr symDimMgr(program.module_op()); ir::SymbolicDimMgr symDimMgr(program.module_op());
ir::dialect::SymbolicDim symDimS0 = symDimMgr.newSymbolicDim(); ir::dialect::SymbolicDim symDimS0 = symDimMgr.newSymbolicDim();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册