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.
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
The Error info:
/home/ubuntu/anaconda3/envs/ggl/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:
Traceback (most recent call last):
File "/home/ubuntu/openi/GammaGL/tests/data/test_dataset.py", line 6, in
pickle.dump(x, f)
TypeError: can't pickle Tensor objects
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看
官网API文档
、
常见问题
、
历史Issue
、
AI社区
来寻求解答。祝您生活愉快~
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
API
,
FAQ
,
Github Issue
and
AI community
to get the answer.Have a nice day!
感谢回复,另外我也注意到可以使用paddle.save & load来保存Tensor。
我也关注到一些保存机制:
https://www.paddlepaddle.org.cn/documentation/docs/zh/faq/save_cn.html#paddle-save-state-dict-layer-tensortensorlisttupledict
我们定义了一个类,其实例中包含动态的Tensor,经过save 和load以后。Tensor变成了(str, numpy.array)。我希望load出来后还是Tensor,请问应该怎么做?
@firestonelib