"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "b030e9363eab6089cc580725ee703cf2f01f3765"
Commit 8300a521 authored by ngimel's avatar ngimel Committed by Myle Ott
Browse files

use implicit padding when possible

parent ae2585d9
...@@ -123,7 +123,7 @@ class FConvEncoder(FairseqEncoder): ...@@ -123,7 +123,7 @@ class FConvEncoder(FairseqEncoder):
self.projections.append(Linear(in_channels, out_channels) self.projections.append(Linear(in_channels, out_channels)
if in_channels != out_channels else None) if in_channels != out_channels else None)
if kernel_size % 2 == 1: if kernel_size % 2 == 1:
padding = kernel_size // 2 padding = kernel_size //2
else: else:
padding = 0 padding = 0
self.convolutions.append( self.convolutions.append(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment