Based on the error message the feature dimension of the input doesn’t match the num_features from a linear layer. I don’t know which linear layer it is, but you could add print statements into the forward method and make sure that the activations have the right shape.