Change tensor data or type with onnx_tool.Tensor. To apply your changes, just call save_model method of onnx_tool.Model or onnx_tool.Graph. Please refer benchmark ...