1 | { |
pytorch volatile
发表于 | 阅读次数:
1 | if args.cuda: |
jupyter cuda设置
发表于 | 阅读次数:
1 | import os |
批规范化wx
发表于 | 阅读次数:
x 通常是relu的输出,不符合高斯分布
wx 比较符合高斯分布
感受野
发表于 | 阅读次数:
感受野的大小大概就是stride的指数倍
k=3,p=1,s=2生成ceil(x/2)
发表于 | 阅读次数:
pkill kill区别
发表于 | 阅读次数:
使用kill -9
python中super出现的TypeError: must be type, not classobj
发表于 | 阅读次数:
1 | super class |
tensor int2float 出现精度误差
发表于 | 阅读次数:
numpy tensor variable对应表
发表于 | 阅读次数:
Numpy | Tensor | |
---|---|---|
repeat | np.repeat(a,16,axis=1) | a.repeat(1,16) |
tile | np.tile(a,(2,2)) | b = a.expand(1,4)? c = a.view(-1, 1).repeat(1, 16).view(10, -1) |
transpose | img = np.transpose(img, (0, 3, 1, 2)) | a = a.permute(3,2,1,0) |
expand | np.expand_dims(x, axis=0) | torch.unsqueeze(x, 1) |