paddle/tensor/creation.py 需要改改np.object 为object了
收藏
如题:paddle/tensor/creation.py 需要改改np.object 为object了,不然警告一大堆
具体警告如下:
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/tensor/creation.py:130: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
if data.dtype == np.object:
JavaRoom
已解决
2#
回复于2021-11
第一列已经挂了,要么用第二列,要么意思意思用第三列 https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations [图片]
0
收藏
请登录后评论
第一列已经挂了,要么用第二列,要么意思意思用第三列
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
@JavaRoom 请问这个警告是这么解决的。
是将creation.py 130行的判断语句进行修改吗? if data.dtype == np.object:
改成:if data.dtype == object: 即可。
我今天也遇到这个问题了,请问该怎么去修改,我在aistudio上训练模型,不知道creation.py文件在哪?
不期末考试吗?还在干项目?
在终端里面修改