Code Monkey home page Code Monkey logo

Comments (3)

gramalingam avatar gramalingam commented on May 26, 2024

Based on a quick look, the code does not touch fields like ir_version when inlining. It seems unlikely to be happening during inlining. Is there an onnx model that causes a problem for reproduction?

from onnx.

xadupre avatar xadupre commented on May 26, 2024

Every model used in unit tests usuaaly specifies the ir_version to avoid onnxruntime to fail because it does not support the new one yet. Any model already used in the existing unit tests is fine. This is how I found it: https://github.com/sdpython/onnx-extended/blob/main/_unittests/ut_tools/test_onnx_inline.py#L58.

from onnx.

gramalingam avatar gramalingam commented on May 26, 2024

@xadupre : I looked at the example in the above link. It is an invalid ONNX model: subgraphs cannot use outer-scope names as the output-names (and expect those values to be returned). Instead, it is expected that the subgraph will have at least one node such as subgraph_output = Identity(outer_scope_name).

I realize you do run the checker. I am guessing it doesn't catch it. If so, we should fix it in the checker and produce an error message.

I don't think this is connected to IR version.

from onnx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.