Module Reference

Export

ONNX-Chainer exports Chainer model to ONNX graph with various options.

onnx_chainer.export

Export function for chainer.Chain in ONNX format.

onnx_chainer.export_testcase

Export model and I/O tensors of the model in protobuf format.

Export Utilities

ONNX-Chainer provides some utility functions to help exporting.

onnx_chainer.replace_func.fake_as_funcnode

The target function fakes FunctionNode

onnx_chainer.replace_func.as_funcnode

The target function fakes FunctionNode

Convert Utilities

These utilities helps converting from Chainer model to ONNX format, mainly used them internally.

Testing Utilities

onnx_chainer.testing.input_generator.increasing

Returns a monotonically increasing ndarray for test inputs.

onnx_chainer.testing.input_generator.nonzero_increasing

Returns a monotonically increasing ndarray for test inputs.

onnx_chainer.testing.input_generator.positive_increasing

Returns a monotonically increasing ndarray for test inputs.