- 博客(3)
- 收藏
- 关注
原创 ubuntu挂载U盘以及传输U盘数据
1.首先进入root权限模式下,挂载U盘命令:mount /dev/sdb1(u盘模式),挂载目录2.cd 挂载目录3.传输文件:scp -r 当前文件路径 用户名@ip地址4. 取消挂载unmount...
2019-11-26 11:04:07
398
原创 IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python
修改a[0]为a.item()
2019-11-25 20:49:42
627
原创 pytorch 调用特定GPU
只需在参数选择项增加一项gpu调用模块。code 如下:parser.add_argument('--gpu-id', default='0', type=str, help='id(s) for CUDA_VISIBLE_DEVICES')
2019-11-24 16:19:32
1856
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人