As of the current stable version, pytorch 1.10.0, “soft” cross-entropy labels are now supported. See:
CrossEntropyLoss – 1.1010.
Best.
K. Frank