Giter VIP home page Giter VIP logo

Comments (9)

loretoparisi avatar loretoparisi commented on July 20, 2024 1

@TomorrowIsAnOtherDay We have the same error on PaddlePaddle PaddlePaddle/Paddle#23086

W0318 11:19:35.642894   150 init.cc:217]     @     0x7fd7e9316c94 _ZN8pybind115enum_IN10onnx_torch20TensorProto_DataTypeEEC1IJEEERKNS_6handleEPKcDpRKT_
W0318 11:19:35.644227   150 init.cc:217]     @     0x7fd7e931029c torch::onnx::initONNXBindings()

We have torch among the requirements.
Any hint?

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

你好,我看你的报错信息有 torch::onnx::initONNXBindings这样的错误,猜测可能是paddle与torch的依赖冲突导致的。
你目前的环境可以正常运行paddle的普通程序吗?

from parl.

1145520074 avatar 1145520074 commented on July 20, 2024

你好,我看你的报错信息有 torch::onnx::initONNXBindings这样的错误,猜测可能是paddle与torch的依赖冲突导致的。
你目前的环境可以正常运行paddle的普通程序吗?

可以运行别的

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

你使用的是anaconda部署环境吗?如果是的话请导出anaconda的环境配置,我们这边尝试复现下这个问题。
如果是pip配置的话,请使用pip list 输出配置环境。

如果赶时间的话,建议用anaconda开一个新的环境,只配置paddle以及PARL。

from parl.

ddayzzz avatar ddayzzz commented on July 20, 2024

说起 torch我倒是发现代码https://github.com/PaddlePaddle/PARL/blob/develop/parl/core/torch/agent.py#L75 有点问题:

self.alg = algorithm
self.device = torc.device('cuda' if torch.cuda.
is_available() else 'cpu')

是否出现了拼写错误?

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

说起 torch我倒是发现代码https://github.com/PaddlePaddle/PARL/blob/develop/parl/core/torch/agent.py#L75 有点问题:

self.alg = algorithm
self.device = torc.device('cuda' if torch.cuda.
is_available() else 'cpu')

是否出现了拼写错误?

是的!感谢指出。我们的单测应该会覆盖到这部分代码的,但实际上并没有覆盖到。我们立刻定位下原因。

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

说起 torch我倒是发现代码https://github.com/PaddlePaddle/PARL/blob/develop/parl/core/torch/agent.py#L75 有点问题:

self.alg = algorithm
self.device = torc.device('cuda' if torch.cuda.
is_available() else 'cpu')

是否出现了拼写错误?

是的!感谢指出。我们的单测应该会覆盖到这部分代码的,但实际上并没有覆盖到。我们立刻定位下原因。

问题已定位到并fix了,再次感谢指出!

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

@loretoparisi Sorry, our suggestion was to install torch and paddle in different environments. We do not suggest using PARL in an environment with torch and paddle installed, due to the potential dependency conflicts.

from parl.

loretoparisi avatar loretoparisi commented on July 20, 2024

@TomorrowIsAnOtherDay thank you, in the meanwhile we have found out that the conflict happens with torch==1.0.0 at least.

from parl.

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.