From 83d5842f56792682e3ba2523090834edf2b8c7b9 Mon Sep 17 00:00:00 2001 From: Liyan Zheng Date: Tue, 11 Apr 2023 16:33:54 +0800 Subject: [PATCH] Fix: specify runtime --- test/core/test_hash.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/test_hash.cc b/test/core/test_hash.cc index 8c1e659a..a2f19ac0 100644 --- a/test/core/test_hash.cc +++ b/test/core/test_hash.cc @@ -8,7 +8,7 @@ namespace infini { TEST(Hash, OperatorHash) { OpPerfKey key1(0, OpType::Unknown), key2(0, OpType::Unknown); { // build with addOpWithOutputs - Graph g = make_ref(nullptr); + Graph g = make_ref(CpuRuntimeObj::getInstance()); Tensor i0 = g->addTensor({1, 2, 3}, DataType::UInt32); Tensor w0 = g->addTensor({1, 3, 4}, DataType::UInt32); Tensor o0 = g->addTensor({1, 2, 4}, DataType::UInt32); @@ -18,7 +18,7 @@ TEST(Hash, OperatorHash) { EXPECT_GT(key1.attrs.size(), (size_t)5); } { // build with addOp - Graph g = make_ref(nullptr); + Graph g = make_ref(CpuRuntimeObj::getInstance()); Tensor i0 = g->addTensor({2, 2, 3}, DataType::UInt32); Tensor w0 = g->addTensor({2, 3, 4}, DataType::UInt32); auto matmul = g->addOp(i0, w0, nullptr);