You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
输出:
/home/senweihuang/anaconda3/lib/python3.9/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:
Tensor(shape=[2], dtype=int64, place=CPUPlace, stop_gradient=True,
[0, 1])
环境:
Ubuntu 18.04
python 3.9.7
paddle 2.2.2
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered:
Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。
bug描述 Describe the Bug
代码:
import paddle
print(paddle.to_tensor([0,1]))
输出:
/home/senweihuang/anaconda3/lib/python3.9/site-packages/paddle/tensor/creation.py:130: DeprecationWarning:
np.object
is a deprecated alias for the builtinobject
. To silence this warning, useobject
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:
Tensor(shape=[2], dtype=int64, place=CPUPlace, stop_gradient=True,
[0, 1])
环境:
Ubuntu 18.04
python 3.9.7
paddle 2.2.2
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: