图像识别-pytorch-RuntimeError: "log_softmax_lastdim_kernel_impl" not implemented for 'Long'
RuntimeErrorTraceback(mostrecentcalllast)~\FashionMNIST_FlyAI-ResNet\main.pyin106y_train=y_train.long()107-->108loss=loss_fn(outputs,y_train)109loss_list.append(loss.item())110loss.backward()d:\Anacon