This tutorial is based on the official PyTorch MNIST example. ... keepdim=True) accuracy = pred.eq(labels.view_as(pred)).sum().item() / len(data) return ...
確定! 回上一頁