|
docc 0.8.3 (0d44999b)
C++ API Reference
|
Tensor matrix multiplication node compatible with ONNX MatMul operator. More...
#include <optional>#include "sdfg/data_flow/library_nodes/math/tensor/tensor_layout.h"#include "sdfg/data_flow/library_nodes/math/tensor/tensor_node.h"#include "sdfg/serializer/json_serializer.h"#include "sdfg/symbolic/symbolic.h"Go to the source code of this file.
Classes | |
| class | sdfg::math::tensor::MatMulNode |
| Tensor matrix multiplication following ONNX MatMul operator specification. More... | |
| class | sdfg::math::tensor::MatMulNodeSerializer |
| Serializer for MatMulNode. More... | |
| class | sdfg::math::tensor::MatMulNaiveExpander |
| class | sdfg::math::tensor::MatMulBlasExpander |
Namespaces | |
| namespace | sdfg |
| namespace | sdfg::math |
| namespace | sdfg::math::tensor |
Functions | |
| data_flow::LibraryNodeCode | sdfg::math::tensor::LibraryNodeType_MatMul ("ml::MatMul") |
Tensor matrix multiplication node compatible with ONNX MatMul operator.
This file defines the MatMulNode class which implements a tensor matrix multiplication operation following the ONNX MatMul operator specification.
The MatMulNode implements the ONNX MatMul operator with the following semantics:
The operation performs matrix multiplication on the last two dimensions and broadcasts over the batch dimensions following numpy broadcasting rules.
The matmul operation is expanded into nested maps:
Creating a batched matrix multiplication: