Based on the error message I assume the first layer might throw this error.
Could you check the shape of your input tensors and make sure the in_features are set to the number of features for each sample?
PS: You can add code snippets by wrapping them into three backticks ```