In net.py 1
class net(nn.Module):
def init(self,num_classes):
super(net, self).init()
    self.encoder_1 = nn.Sequential(
        nn.Conv3d(1,25,7,padding=6,dilation=2),
        nn.BatchNorm3d(25),
        nn.PReLU()
        ) 

def forward(self,x):
size_1 = x.size()
en_1 = self.encoder_1(x)
print 'en_1 in net.py 1 ', en_1
In tran.py 1
                  encoder_1 = nn.Sequential(
                                            nn.Conv3d(1,25,7,padding=6,dilation=2),
                                           nn.BatchNorm3d(25),
                                            nn.PReLU()
                                            ) #first encoder
                   **print ('encoder_1 in train.py ',encoder_1(imgdata))**
                   output = net(imgdata)