Mr7Explorer commited on
Commit
4353d5b
·
verified ·
1 Parent(s): 6636ac4

Create lateral_blocks.py

Browse files
Files changed (1) hide show
  1. lateral_blocks.py +16 -0
lateral_blocks.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch.nn as nn
2
+
3
+ from config import Config
4
+
5
+
6
+ config = Config()
7
+
8
+
9
+ class BasicLatBlk(nn.Module):
10
+ def __init__(self, in_channels=64, out_channels=64, ks=1, s=1, p=0):
11
+ super(BasicLatBlk, self).__init__()
12
+ self.conv = nn.Conv2d(in_channels, out_channels, ks, s, p)
13
+
14
+ def forward(self, x):
15
+ x = self.conv(x)
16
+ return x