28 std::vector<mir::Operation::Output *> inputs = context->
getNodeInputs(onnx_node);
31 assert(inputs.size() == 2);
36 if (A->getShape().rank() != 2 || B->getShape().rank() != 2)
37 throw std::runtime_error(
"Supported only 2D matrix multiplying!");
39 auto result = createOp<mir::ops::FullyConnectedOp>(graph, A, B)->getOutput(0);
void setNodeOutputs(const onnx::NodeProto &onnx_node, const std::vector< mir::Operation::Output * > &outputs)
std::vector< mir::Operation::Output * > getNodeInputs(const onnx::NodeProto &onnx_node) const
mir::Graph * getGraph() const