Skip to content

Commit

Permalink
[ONNX][Version] Update IR Version (#1261)
Browse files Browse the repository at this point in the history
* [ONNX][Version] Update IR Version (#1261)
  • Loading branch information
Zheng-Bicheng authored May 27, 2024
1 parent d08fa6d commit 2f426cd
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 359 deletions.
2 changes: 1 addition & 1 deletion VERSION_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2
1.2.3
4 changes: 2 additions & 2 deletions paddle2onnx/mapper/exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ std::string ModelExporter::Run(
}

// construct a onnx model proto
auto ir_version = _helper.GetIRVersion();
auto model = std::make_shared<ONNX_NAMESPACE::ModelProto>();
// TODO(jiangjiajun) ir version is related to onnx version
model->set_ir_version(ONNX_NAMESPACE::IR_VERSION);
model->set_ir_version(ir_version);
auto graph = model->mutable_graph();
graph->set_name("Model from PaddlePaddle.");
auto opset_id = model->add_opset_import();
Expand Down
Loading

0 comments on commit 2f426cd

Please sign in to comment.