TypeError: kl_div(): argument ‘target‘ (position 2) must be Tensor, not numpy.int64
问题描述File“D:/python/modelsmy/trainvgg16.py”,line77,intrain(net,train_dataSet,df_train,test_dataSet,df_test,optimizer,device,num_epochs)File“D:/python/modelsmy/trainvgg16.py”,line34,intrainl=loss(y_hat,