KFrank:

I do not believe that pytorch has a “soft” cross-entropy function built in.


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