摘要: 先看一下CLASS有哪些参数: torch.nn.Conv2d( in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, padding_mode='zeros' ) 阅读全文
posted @ 2020-02-24 21:51 Dilthey 阅读(2042) 评论(0) 推荐(2) 编辑
摘要: 参考自《Pytorch autograd,backward详解》: 1 Tensor Pytorch中所有的计算其实都可以回归到Tensor上,所以有必要重新认识一下Tensor。 如果我们需要计算某个Tensor的导数,那么我们需要设置其.requires_grad属性为True。为方便说明,在本 阅读全文
posted @ 2020-02-24 20:29 Dilthey 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: 先看一下它的参数: norm(p='fro', dim=None, keepdim=False, dtype=None) p: the order of norm. 一般来说指定 $p = 1, 2$ 等值表示 $(\sum_{i} \left | x_i \right |^{p})^{(1/p)} 阅读全文
posted @ 2020-02-24 20:28 Dilthey 阅读(2454) 评论(0) 推荐(0) 编辑