Giter VIP home page Giter VIP logo

Comments (7)

Jiang-Jia-Jun avatar Jiang-Jia-Jun commented on July 18, 2024

这个问题先前看到反馈过多次。 使用ONNX Runtime CPU应该可以推理,使用ONNX Runtime GPU且关闭图优化也可以推理。 可以自行再测试下,可能得在ONNX Runtime仓库下提问

from paddle2onnx.

diyaxxxx avatar diyaxxxx commented on July 18, 2024

这个问题先前看到反馈过多次。 使用ONNX Runtime CPU应该可以推理,使用ONNX Runtime GPU且关闭图优化也可以推理。 可以自行再测试下,可能得在ONNX Runtime仓库下提问

感谢回复。
onnx在CPU上是可以推理的,目前的需求是在GPU上推理
根据sess_options.graph_optimization_level = rt.GraphOptimizationLevel.ORT_DISABLE_ALL关闭图优化
image

关闭图优化后,onnx在CPU上推理失败
image

在GPU上推理失败
image

from paddle2onnx.

Zheng-Bicheng avatar Zheng-Bicheng commented on July 18, 2024

CPU能推理GPU不能推理看上去像是ONNXRuntime自身的问题呀

from paddle2onnx.

diyaxxxx avatar diyaxxxx commented on July 18, 2024

CPU能推理GPU不能推理看上去像是ONNXRuntime自身的问题呀

换过几个onnxruntime版本都会有相同的错误

from paddle2onnx.

Zheng-Bicheng avatar Zheng-Bicheng commented on July 18, 2024

换过几个onnxruntime版本都会有相同的错误

我的理解是,CPU能推理说明模型本身没问题。至于你说的ONNXRuntime换了几个版本都不行,是不是把模型提交到ONNXRuntime的Issues让他们帮忙看下呢?

from paddle2onnx.

diyaxxxx avatar diyaxxxx commented on July 18, 2024

换过几个onnxruntime版本都会有相同的错误

我的理解是,CPU能推理说明模型本身没问题。至于你说的ONNXRuntime换了几个版本都不行,是不是把模型提交到ONNXRuntime的Issues让他们帮忙看下呢?

好的,谢谢,已经提交了

from paddle2onnx.

diyaxxxx avatar diyaxxxx commented on July 18, 2024

这个问题先前看到反馈过多次。 使用ONNX Runtime CPU应该可以推理,使用ONNX Runtime GPU且关闭图优化也可以推理。 可以自行再测试下,可能得在ONNX Runtime仓库下提问

感谢!问题解决!关闭图优化之后在GPU上推理成功,之前的测试代码不正确,导致仍然报错,测试成功代码如下:
image

from paddle2onnx.

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.