mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-01 03:12:49 +08:00
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:
parent
d84f274a08
commit
a3d99cab6b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user