It looks like your first two linear layers match each other in terms of dimension, but the first layer does not match the input size. (e.g., in this case to match it should have an input dimension of 1164 ：
self.linear1 = nn.Linear(1164,256)

)