How could I export model to onnx model with older ir version?


I am trying to export pytorch model to onnx with onnx2trt. When I run the command:

    $ onnx2trt model.onnx model.trt

I got the error of :

WARNING: ONNX model has a newer ir_version (0.0.4) than this parser was built against (0.0.3).
Parsing model
ERROR: /root/build/TensorRT/parsers/onnx/ModelImporter.cpp:523 In function importModel:
[4] Assertion failed: !>hasImplicitBatchDimension() && “This version of the ONNX parser only supports networks with an explicit batch dimension”

How could I export my onnx model with an older version so that it could compatible with tensorrt?