auto mir_tensor = mir::TensorVariant(mir::DataType::FLOAT32, shape, (const void *)data);
auto *constant = mir_graph.create<mir::ops::ConstantOp>(mir_tensor)->getOutput(0);
auto *conv = mir_graph
- .create<mir::ops::Conv2DOp>(input, constant, mir::Shape{2, 3},
+ .create<mir::ops::Conv2DOp>(input, constant, std::vector<std::int32_t>{2, 3},
std::vector<std::int32_t>{5, 9},
std::vector<std::int32_t>{7, 4})
->getOutput(0);
auto mir_tensor = mir::TensorVariant(mir::DataType::FLOAT32, shape, (const void *)data);
auto *constant = mir_graph.create<mir::ops::ConstantOp>(mir_tensor)->getOutput(0);
auto *conv = mir_graph
- .create<mir::ops::DepthwiseConv2DOp>(input, constant, mir::Shape{2, 3},
- std::vector<std::int32_t>{5, 9},
- std::vector<std::int32_t>{7, 4})
+ .create<mir::ops::DepthwiseConv2DOp>(
+ input, constant, std::vector<std::int32_t>{2, 3},
+ std::vector<std::int32_t>{5, 9}, std::vector<std::int32_t>{7, 4})
->getOutput(0);
mir_graph.create<mir::ops::OutputOp>(conv);
input->setName("x");