logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【C++ 开根号和平方运算】

描述:在写机器人定位的cpp文件时,遇到了一点关于C++的数学运算上的小问题,在此记录一下。

#c++#开发语言#算法
解决【Expected all tensors to be on the same device, but found at least two devices,】

Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument index in method wrapper__index_select)例如:例如:

#pytorch#深度学习#tensorflow
解决【SDK is not defined for Run Configuration】

描述:没有新建项目文件,直接在储存目录里打开了这个文件,试图运行,但是报错感觉遇到这个问题的人比较少,其实只是一个很小的问题导致的。

#python
解决【AttributeError: ‘tuple‘ object has no attribute ‘view‘】

看网上的代码是x,_=self.layer1(x)有点像故意留的BUG但是删成x=self.layer1(x)会报错例如:

#pytorch#python#人工智能
暂无文章信息