Open NeuZhangQiang opened 3 years ago
In the Encoder of reconstruction network, some code is:
Encoder
def Basic(intInput, intOutput): return torch.nn.Sequential( torch.nn.Conv2d(in_channels=intInput, out_channels=intOutput, kernel_size=3, stride=1, padding=1), torch.nn.BatchNorm2d(intOutput), torch.nn.ReLU(inplace=False), torch.nn.Conv2d(in_channels=intOutput, out_channels=intOutput, kernel_size=3, stride=1, padding=1), torch.nn.BatchNorm2d(intOutput), torch.nn.ReLU(inplace=False) ) def Basic_(intInput, intOutput): return torch.nn.Sequential( torch.nn.Conv2d(in_channels=intInput, out_channels=intOutput, kernel_size=3, stride=1, padding=1), torch.nn.BatchNorm2d(intOutput), torch.nn.ReLU(inplace=False), torch.nn.Conv2d(in_channels=intOutput, out_channels=intOutput, kernel_size=3, stride=1, padding=1), )
I wonder why the Basic_ do not include BatchNorm2d and ReLU for the second convolution kernel.
Basic_
BatchNorm2d
ReLU
Any suggestion is appreciated~
In the
Encoder
of reconstruction network, some code is:I wonder why the
Basic_
do not includeBatchNorm2d
andReLU
for the second convolution kernel.Any suggestion is appreciated~