forked from jiuyuan/InfiniTensor
fix: test graph handler
Signed-off-by: YdrMaster <ydrml@hotmail.com>
This commit is contained in:
parent
28b123753e
commit
8bc2d3e48d
|
@ -8,8 +8,9 @@ TEST(Handler, matmul) {
|
|||
auto runtime = NativeCpuRuntimeObj::getInstance();
|
||||
auto handler = make_ref<GraphHandlerObj>(runtime);
|
||||
auto i = handler->tensor({1, 2, 3}, OnnxDType::UINT32, TensorType::Input);
|
||||
auto w = handler->tensor({1, 3, 4}, OnnxDType::UINT32, TensorType::Input);
|
||||
auto o = handler->tensor({1, 2, 4}, OnnxDType::UINT32, TensorType::Input);
|
||||
auto w =
|
||||
handler->tensor({1, 3, 4}, OnnxDType::UINT32, TensorType::Initialized);
|
||||
auto o = handler->tensor({1, 2, 4}, OnnxDType::UINT32, TensorType::Other);
|
||||
handler->matmul(i, w, o, false, false, nullptr, ActType::None);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue