qonnx.transformation.gemm_to_matmul (module)

class qonnx.transformation.gemm_to_matmul.GemmToMatMul

Bases: qonnx.transformation.base.Transformation

Converts Gemm nodes into a MatMul and an Add node. This transformation is built to support version 9 of the Gemm node, as documented here: https://github.com/onnx/onnx/blob/master/docs/Changelog.md#Gemm-9 However, earlier and later versions of the node are likely to work as well. Explicitly not supported is the optionality of input C in versions >=11 and the broadcast attribute of versions <=6.

apply(model)