Solved by madmax in post #4 
              
              
                Here is the modified code. Hopefully this helps someone in the future  
class PytorchMnistEnsModel(nn.Module):
    """ Basic MNIST model from github
    https://github.com/rickiepark/pytorch-examples/blob/master/mnist.ipynb
    """
    def __init__(self, num_models=5):
        super(PytorchMnistEnsM…