python:3.7.4
paddle:2.1.2
paddlex:2.0.0
以下是报错的代码。对1,2不太理解
1、/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/distributed/parallel.py:120: UserWarning: Currently not a parallel execution environment, `paddle.distributed.init_parallel_env` will not do anything.
"Currently not a parallel execution environment, `paddle.distributed.init_parallel_env` will not do anything."
2、/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/parl/remote/communication.py:38: DeprecationWarning: 'pyarrow.default_serialization_context' is deprecated as of 2.0.0 and will be removed in a future version. Use pickle or the pyarrow IPC functionality instead.
context = pyarrow.default_serialization_context()
3.RuntimeError: ResourceExhaustedError:
1 是说当前系统不具备并行训练能力,可以忽略
2 是说 pyarrow.default_serialization_context 这个api 已经启用了,后续版本可能不再支持,目前也可以忽略
3 内存报错,可能是之前用完没有释放内存,或者平台自己有时候会卡。建议重启平台试试。
4 可以将以下代码添加到程序里用以取消警告输出
import warnings
warnings.filterwarnings('ignore')
paddlex经常连不上出错
你列出来的这3点,只有3是报错,另外两个是警告:
第一个说你的系统不具备并行计算的条件,可能是只有一块显卡;
第二个说你用了某个API在未来的版本中可能会被停止使用;
第三个就是资源不够的错误了。
哈哈哈哈哈,三楼有点优秀
这个怎么解决的,我也遇到了