Hi Ivan!



 ivang90:

I am getting error message: RuntimeError: “nll_loss_out_frame” not implemented for ‘Long’
…
Shape of tensors are predicted.shape = (1,4) and targer_tensor.shape = (1,4).


May I respectfully suggest that you read the documentation for
NLLLoss 29?
What types does NLLLoss expect / require for the input (your
predicted) and target (your target_tensor) tensors passed
into it?  What shapes?
Best.
K. Frank