Closed ugorsahin closed 10 months ago
In the loss evaluation, using the Stage.TRAIN mode causes the compute_objectives to fail as given below
return torch._C._nn.nll_loss_nd(input, target, weight, _Reduction.get_enum(reduction), ignore_index) RuntimeError: 0D or 1D target tensor expected, multi-target not supported
Therefore, I changed the Stage.TRAIN to Stage.VALID.
In the loss evaluation, using the Stage.TRAIN mode causes the compute_objectives to fail as given below
Therefore, I changed the Stage.TRAIN to Stage.VALID.