Why does pytorch require the label to be of type torch.long? Keras did not have this problem. A label should be what the user says it is…
e.g. if I’m creating an LSTM model for the following sequence
[0.08574425157113574, 0.08615396453867125, 0.08615396453867125, 0.08624176097991065, 0.08632949541005121, 0.08641732567552636, 0.08647585287810422, 0.08650518412786463, 0.08752938198611403, 0.08805613808405999]
And the sequence length is 3, then the label for
.08574425157113574, 0.08615396453867125, 0.08615396453867125
is 0.08624176097991065
The above should not be a problem.