Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][W191][E101] remove tabs in python NPU unittest files #46309

Merged
merged 1 commit into from
Sep 22, 2022

Conversation

SigureMo
Copy link
Member

PR types

Others

PR changes

Others

Describe

修复 remove-tabs 存量 python 代码('\t' -> ' ' * 4

本 PR 仅修复 NPU 单测的问题,触发 NPU 单测以复现单测中出现的问题

@paddle-bot
Copy link

paddle-bot bot commented Sep 20, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Sep 20, 2022
@SigureMo SigureMo changed the title [CodeStyle] remove tabs in python NPU unittest files [CodeStyle][W191][E101] remove tabs in python NPU unittest files Sep 20, 2022
@SigureMo
Copy link
Member Author

SigureMo commented Sep 20, 2022

2022-09-20 18:48:48 Error: Can not import paddle core while this file exists: /workspace/npu_dev/Paddle/build/python/paddle/fluid/libpaddle.so
2022-09-20 18:48:48 Traceback (most recent call last):
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/tools/test_runner.py", line 20, in <module>
2022-09-20 18:48:48     import paddle
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/__init__.py", line 25, in <module>
2022-09-20 18:48:48     from .framework import monkey_patch_variable
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/framework/__init__.py", line 17, in <module>
2022-09-20 18:48:48     from . import random  # noqa: F401
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/framework/random.py", line 16, in <module>
2022-09-20 18:48:48     import paddle.fluid as fluid
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/fluid/__init__.py", line 36, in <module>
2022-09-20 18:48:48     from . import framework
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/fluid/framework.py", line 37, in <module>
2022-09-20 18:48:48     from . import core
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/fluid/core.py", line 301, in <module>
2022-09-20 18:48:48     raise e
2022-09-20 18:48:48   File "/workspace/npu_dev/Paddle/build/python/paddle/fluid/core.py", line 247, in <module>
2022-09-20 18:48:48     from . import libpaddle
2022-09-20 18:48:48 ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

看样子可能是 #46095 整合 core_avx 和 core_noavx 到 libpaddle 导致的,但具体原因不太清楚

@luotao1 luotao1 self-assigned this Sep 21, 2022
@luotao1
Copy link
Contributor

luotao1 commented Sep 21, 2022

@qili93 帮忙看下NPU的问题

@luotao1 luotao1 merged commit 72d5a37 into PaddlePaddle:develop Sep 22, 2022
@SigureMo SigureMo deleted the tabs/fix/npu-ut branch September 22, 2022 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants