Solved by justusschock in post #2 
              
              
                Whis is supported but you have to write your own module for it. A simple example is this: 
class CustomModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = torch.nn.Conv2d(1,3,3)
        self.relu = torch.nn.ReLU()
        self.conv2 = torch.nn.Conv2d(3,1,…