mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-14 11:26:24 +08:00
Remove explicit inheritance from object
Summary: All classes implicitly inherit from `object` since Python 3, so remove unnecessary explicit inheritance. From the [official documentation](https://docs.python.org/3/library/functions.html#object): > `object` is a base for all classes. Reviewed By: nikhilaravi Differential Revision: D28942595 fbshipit-source-id: 466c0d19d8a93a6263e7ad734c3e87160cfa6066
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f14c0236f0
commit
d76c00721c
@@ -11,7 +11,7 @@ from matplotlib import colors as mcolors
|
||||
from visdom import Visdom
|
||||
|
||||
|
||||
class AverageMeter(object):
|
||||
class AverageMeter:
|
||||
"""
|
||||
Computes and stores the average and current value.
|
||||
Tracks the exact history of the added values in every epoch.
|
||||
@@ -65,7 +65,7 @@ class AverageMeter(object):
|
||||
]
|
||||
|
||||
|
||||
class Stats(object):
|
||||
class Stats:
|
||||
"""
|
||||
Stats logging object useful for gathering statistics of training
|
||||
a deep network in PyTorch.
|
||||
|
||||
Reference in New Issue
Block a user