add LayerNorm to conv() for testing

This commit is contained in:
CptCaptain 2021-11-29 17:54:45 +01:00
parent 88e4a7e317
commit 7060bd5555

View File

@ -192,6 +192,8 @@ class DispNetS(TimedModule):
def conv(self, in_planes, out_planes):
return torch.nn.Sequential(
torch.nn.Conv2d(in_planes, out_planes, kernel_size=3, padding=1),
# TODO try this
torch.nn.LayerNorm(out_planes),
torch.nn.ReLU(inplace=True)
)