Del (object) from 200 inc vision/fair/mae_st/util/meters.py

Summary: Python3 makes the use of `(object)` in class inheritance unnecessary. Let's modernize our code by eliminating this.

Reviewed By: itamaro

Differential Revision: D48673863

fbshipit-source-id: 032d6028371f0350252e6b731c74f0f5933c83cd
This commit is contained in:
Richard Barnes 2023-08-26 13:55:56 -07:00 committed by Facebook GitHub Bot
parent d84f274a08
commit a3d99cab6b

View File

@ -21,7 +21,7 @@ from pytorch3d.implicitron.tools.vis_utils import get_visdom_connection
logger = logging.getLogger(__name__)
class AverageMeter(object):
class AverageMeter:
"""Computes and stores the average and current value"""
def __init__(self):
@ -72,7 +72,7 @@ class AverageMeter(object):
return self
class Stats(object):
class Stats:
# TODO: update this with context manager
"""
stats logging object useful for gathering statistics of training a deep net in pytorch