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:
Patrick Labatut 2021-06-08 02:14:59 -07:00 committed by Facebook GitHub Bot
parent f14c0236f0
commit d76c00721c
4 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -7,7 +7,7 @@ import torch
from . import utils as struct_utils
class Meshes(object):
class Meshes:
"""
This class provides functions for working with batches of triangulated
meshes with varying numbers of faces and vertices, and converting between

View File

@ -5,7 +5,7 @@ import torch
from . import utils as struct_utils
class Pointclouds(object):
class Pointclouds:
"""
This class provides functions for working with batches of 3d point clouds,
and converting between representations.

View File

@ -8,7 +8,7 @@ from ..transforms import Scale, Transform3d
from . import utils as struct_utils
class Volumes(object):
class Volumes:
"""
This class provides functions for working with batches of volumetric grids
of possibly varying spatial sizes.