摘要: 转自:https://zhuanlan.zhihu.com/p/31713257 阅读全文
posted @ 2018-12-10 21:50 Le1B_o 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 测试代码: import torch.nn as nnclass Model(nn.Module): def __init__(self): super(Model, self).__init__() self.conv1 = nn.Conv2d(10, 20, 4) self.conv2 = nn 阅读全文
posted @ 2018-12-10 15:18 Le1B_o 阅读(2134) 评论(0) 推荐(0) 编辑
摘要: 测试代码: import torch import torch.nn as nn m = nn.ReLU(inplace=True) input = torch.randn(10) print(input) output = m(input) print(output) print(input) 输 阅读全文
posted @ 2018-12-10 14:55 Le1B_o 阅读(3312) 评论(0) 推荐(0) 编辑
摘要: ConvTransposed2d()其实是Conv2d()的逆过程,其参数是一样的 Conv2d(): output = (input+2*Padding-kernelSize) / stride + 1(暂时不考虑outputPadding 注意:outputPadding只是在一边Padding 阅读全文
posted @ 2018-12-10 11:34 Le1B_o 阅读(2182) 评论(0) 推荐(0) 编辑
摘要: A guide to convlution arithmetic for deep learning-Transposed Convolution Transposed convolutions – also called fractionally strided convolutions or d 阅读全文
posted @ 2018-12-10 10:33 Le1B_o 阅读(162) 评论(0) 推荐(0) 编辑