class AverageMeter()的用法与含义
class AverageMeter(object):
"""Computes and stores the average and current value"""
def __init__(self):
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def updat
原创
2023-10-20 10:42:50 ·
132 阅读 ·
1 评论