PaddlePaddle/2.1 源码编译安装时paddle.tensor问题

rbl8hiat  于 2022-10-23  发布在  其他
关注(0)|答案(2)|浏览(222)

平台:FT
Paddle版本:release/2.1
import paddle.tensor
Traceback (most recent call last):
File "", line 1, in
File "/home/kylin/.local/lib/python3.5/site-packages/paddle/init.py", line 27, in
monkey_patch_variable()
File "/home/kylin/.local/lib/python3.5/site-packages/paddle/fluid/layers/math_op_patch.py", line 401, in monkey_patch_variable
variabel_methods = paddle.tensor.tensor_method_func
AttributeError: module 'paddle' has no attribute 'tensor'

62o28rlo

62o28rlo1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看 官网API文档常见问题历史IssueAI社区 来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

kyks70gy

kyks70gy2#

您好,看问题应该没正确编译源码。我这边没有复现问题。pip安装方式
python3 -m pip install paddlepaddle==2.1.3 -i https://mirror.baidu.com/pypi/simple
源码编译参考https://www.paddlepaddle.org.cn/documentation/docs/zh/install/compile/fromsource.html#congyuanmabianyi

相关问题