https://github.com/onnx/tensorflow-onnx/blob/1528091559b5246207c09cccc45a33e671b1f662/tf2onnx/rewriter/gemm_rewriter.py#L74