qonnx.transformation.merge_onnx_models (module)

class qonnx.transformation.merge_onnx_models.MergeONNXModels(pre_model)

Bases: qonnx.transformation.base.Transformation

Merges two models. The model passed in the transformation will be inserted before the model the transformation is applied on, the resulting model is returned. This transformation will try to connect graph.output[0] of the pre model and graph.input[0] of the post model. If more than one input or output exists, a warning is raised.

apply(model)