Commit a3d99cab authored by Richard Barnes's avatar Richard Barnes Committed by Facebook GitHub Bot
Browse files

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
parent d84f274a
...@@ -21,7 +21,7 @@ from pytorch3d.implicitron.tools.vis_utils import get_visdom_connection ...@@ -21,7 +21,7 @@ from pytorch3d.implicitron.tools.vis_utils import get_visdom_connection
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class AverageMeter(object): class AverageMeter:
"""Computes and stores the average and current value""" """Computes and stores the average and current value"""
def __init__(self): def __init__(self):
...@@ -72,7 +72,7 @@ class AverageMeter(object): ...@@ -72,7 +72,7 @@ class AverageMeter(object):
return self return self
class Stats(object): class Stats:
# TODO: update this with context manager # TODO: update this with context manager
""" """
stats logging object useful for gathering statistics of training a deep net in pytorch stats logging object useful for gathering statistics of training a deep net in pytorch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment