It depends on your overall workflow and how the data is handled at the moment.
Generally, PyTorch modules accept a batched input (usually the batch dimension is in dim0).
If the “50 respondents” would be seen as a batch of 50 observations, you should be able to directly pass this input tensor to the model and calculate the loss.
By default the criterion will calculate the loss as the average of the sample losses.