It looks like the default forward function in nn.Module is being used instead of an override which seems strange. What is the forward function in your model and what is the type of images here? Is it just a single tensor?