![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码调试
一蓑烟雨渡平生
故事还没有结束。
展开
-
深度学习与PyTorch入门实战教程
2D函数优化实例P36 https://www.bilibili.com/video/BV1AV411z79D?p=37 ''' Broadcasting 自动扩充维度 避免手动扩充维度,省内存 拼接和拆分 cat stack 创建新的维度拼接 split 拆分 chunk a = torch.rand(4,32,8) b = torch.rand(5,32,8) c = torch.cat([a,b],dim = 0).shape print('c:',c) # 矩阵乘法三种形式 torch原创 2021-03-11 16:32:29 · 1130 阅读 · 0 评论 -
深度学习与PyTorch入门实战教程
深度学习与PyTorch入门实战教程 P39 多分类问题代码 https://www.bilibili.com/video/BV1AV411z79D?p=40 ''' Logistic Regression 使用sigmoid MSE =>regression softmax 交叉熵 熵 = 不确定性 Entropy = -∑p(x)log q(x) ''' import torch import torch.nn.functional as F from torchvision imp原创 2021-03-11 16:29:23 · 225 阅读 · 0 评论 -
Learning to Compare: Relation Network for Few-Shot Learning 论文代码调试
https://www.cnblogs.com/smartweed/p/10750065.html 按照这里面要求改可以成功运行。 如果没有运行报错的别改。 我的电脑环境如下。 pycharm+conda+python3.8+torch1.7转载 2020-12-11 21:20:04 · 357 阅读 · 2 评论