4、nn.CrossEntropyLoss. 需要注意的是,target輸入必須是tensor long 類型(int64位) import torch # cross entropy loss ...
確定! 回上一頁