Skip to content

Commit

Permalink
fix optimizer does not set ir_version bug (onnx#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumihwh authored and bddppq committed Jun 8, 2018
1 parent 2508156 commit 39e4668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnx/optimizer/optimize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace ONNX_NAMESPACE { namespace optimization {
ONNX_NAMESPACE::ModelProto PrepareOutput(const ONNX_NAMESPACE::ModelProto& mp_in) {
ONNX_NAMESPACE::ModelProto mp_out{};

if (mp_in.has_producer_name()) {
if (mp_in.has_ir_version()) {
mp_out.set_ir_version(mp_in.ir_version());
}
if (mp_in.has_producer_name()) {
Expand Down

0 comments on commit 39e4668

Please sign in to comment.