... += predicted.eq(targets.data.view_as(predicted)).sum() #與正確解答一致的話遞增 1 #輸出正確解答率 data_num = len(loader_test.dataset) #資料總數 print('\n ...
確定! 回上一頁