Code Monkey home page Code Monkey logo

Comments (7)

guschmue avatar guschmue commented on May 20, 2024

I remember that there was some issue with caffe2 and winml that some tensor ops don't work if you use a scalar but they are perfectly happy if you pass [scalar] and I think we intentionally made a change to use [scalar] for that reason. Let me look at this again, it is some time ago and I don't know if caffe2 still needs this. We could maybe ifdef this for the caffe2 runtime ... this target thing was meant to allow runtime specific workarounds.

if ctx.is_target(TARGET_CAFFE2):

from tensorflow-onnx.

pengwa avatar pengwa commented on May 20, 2024

Thanks @guschmue for the reply, while this issue should be in tf-graph->onnx conversion stage, not yet hit the caffe2 runtime.

from tensorflow-onnx.

pengwa avatar pengwa commented on May 20, 2024

Do you mean let me comment the https://github.com/onnx/tensorflow-onnx/blob/master/tf2onnx/graph.py#L421 with check "if ctx.is_target(TARGET_CAFFE2):"?

from tensorflow-onnx.

guschmue avatar guschmue commented on May 20, 2024

void my comment ,,, not the same. I'll look at it today.

from tensorflow-onnx.

pengwa avatar pengwa commented on May 20, 2024

I just comment the L421 check to unblock the model conversion, so maybe we can consider to loose the shape==dim check for some special case. anyway, we can discuss once you get better context later. :)

from tensorflow-onnx.

guschmue avatar guschmue commented on May 20, 2024

sure

from tensorflow-onnx.

pengwa avatar pengwa commented on May 20, 2024

not having this issue recently, close this unless we got this failure again.

from tensorflow-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.