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
你好,我在win10 64位系统中运行img_classifier.py时,会出现
InvalidArgumentError: Tensor holds the wrong type, it holds int, but desires to be int64_t.
我的paddle版本是1.7.1 paddlehub版本为1.6.0
python版本为3.7.7
我在网上搜索了相关信息,发现paddle的官方csdn文档中提到过可能因为系统的默认数据类型不同,导致windows中会出现错误,那个文档中是这样回答的:
Since you haven't replied for more than 3 months, 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。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。
欢迎您反馈PaddleHub使用问题,非常感谢您对PaddleHub的贡献!
在留下您的问题时,辛苦您同步提供如下信息:
1)PaddleHub和PaddlePaddle版本:请提供您的PaddleHub和PaddlePaddle版本号,例如PaddleHub1.4.1,PaddlePaddle1.6.2
2)系统环境:请您描述系统类型,例如Linux/Windows/MacOS/,python版本
你好,我在win10 64位系统中运行img_classifier.py时,会出现
InvalidArgumentError: Tensor holds the wrong type, it holds int, but desires to be int64_t.
我的paddle版本是1.7.1 paddlehub版本为1.6.0
python版本为3.7.7
我在网上搜索了相关信息,发现paddle的官方csdn文档中提到过可能因为系统的默认数据类型不同,导致windows中会出现错误,那个文档中是这样回答的:
【该问题很有可能是paddle.fluid.layers.data定义的输入类型不正确,Fluid中需要注意的是对于float而言,float32是主要实数类型,而对int而言,int64是主要标签类型。在使用时,最好对应上。】
但我不知道如何在这个例子中进行修改,能够帮忙解决,谢谢!
The text was updated successfully, but these errors were encountered: