我是靠谱客的博主 忧伤秋天,这篇文章主要介绍Input type (torch.cuda.ByteTensor) and weight type (torch.cuda.FloatTensor) should be the same,现在分享给大家,希望可以做个参考。

只需要将对应的torch.tensor()改为torch.FloatTensor()就可以了,例如torch.FloatTensor([img])

最后

以上就是忧伤秋天最近收集整理的关于Input type (torch.cuda.ByteTensor) and weight type (torch.cuda.FloatTensor) should be the same的全部内容,更多相关Input内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(133)

评论列表共有 0 条评论

立即
投稿
返回
顶部