Hi Sergey!



 my3bikaht:

  File "../torch/nn/functional.py", line 2824, in cross_entropy
    return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: 1D target tensor expected, multi-target not supported



Support for “soft,” probabilistic targets for CrossEntropyLoss is new
as of (I believe) the current stable version, 1.10.0.
Your best bet will be to upgrade to the current stable release.
Best.
K. Frank