GithubHelp home page GithubHelp logo

我使用多线程启动ppstructure+ocr处理任务(具体起了两个线程),运行时报错PreconditionNotMetError: Tensor's dimension is out of bound.,单线程运行没问题 about paddle HOT 2 OPEN

binfox1 avatar binfox1 commented on June 19, 2024
我使用多线程启动ppstructure+ocr处理任务(具体起了两个线程),运行时报错PreconditionNotMetError: Tensor's dimension is out of bound.,单线程运行没问题

from paddle.

Comments (2)

cxxly avatar cxxly commented on June 19, 2024

您好,麻烦补充下飞桨版本号,复现代码;

from paddle.

cxxly avatar cxxly commented on June 19, 2024

另外,请教下为什么会有这种诉求,是想提升推理服务并发度吗,部署多个服务,启多个进程是不是更合适。两个线程运行同一份数据和模型,如果没做好线程间同步和互斥机制,问题会比较大,而且并没有真正高并发。

from paddle.

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.