RSS 2021-08 - 1/1 Blog onnx (8) runtime (3)


2021-08 - 1/1#

A few tricks for tf2onnx#

2021-08-12

A few things I tend to forget. To run a specific test on a specific opset.

post

Decompose einsum into numpy operators#

2021-08-11

Notebook Einsum decomposition what function numpy.einsum does and how it can be decomposed into a series of basic operations, all available in ONNX. That’s the purpose of function Function decompose_einsum_equation. With function export2numpy, it is possible to convert back this ONNX graph into a series of numpy operations.

post

onnxruntime shape [] != None#

2021-08-10

None is the undefined shape, [] is an empty shape. And when shapes do not fit the results, the outputs can be suprising. The following example shows what onnxruntime produces for the same graph except input and output shapes when defined as None and [].

post


RSS 2021-08 - 1/1 2020-11 (1) 2021-05 (2) 2021-07 (2) 2021-08 (3) 2022-02 (1)