mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +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:
parent
f14c0236f0
commit
d76c00721c
@ -11,7 +11,7 @@ from matplotlib import colors as mcolors
|
|||||||
from visdom import Visdom
|
from visdom import Visdom
|
||||||
|
|
||||||
|
|
||||||
class AverageMeter(object):
|
class AverageMeter:
|
||||||
"""
|
"""
|
||||||
Computes and stores the average and current value.
|
Computes and stores the average and current value.
|
||||||
Tracks the exact history of the added values in every epoch.
|
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
|
Stats logging object useful for gathering statistics of training
|
||||||
a deep network in PyTorch.
|
a deep network in PyTorch.
|
||||||
|
@ -7,7 +7,7 @@ import torch
|
|||||||
from . import utils as struct_utils
|
from . import utils as struct_utils
|
||||||
|
|
||||||
|
|
||||||
class Meshes(object):
|
class Meshes:
|
||||||
"""
|
"""
|
||||||
This class provides functions for working with batches of triangulated
|
This class provides functions for working with batches of triangulated
|
||||||
meshes with varying numbers of faces and vertices, and converting between
|
meshes with varying numbers of faces and vertices, and converting between
|
||||||
|
@ -5,7 +5,7 @@ import torch
|
|||||||
from . import utils as struct_utils
|
from . import utils as struct_utils
|
||||||
|
|
||||||
|
|
||||||
class Pointclouds(object):
|
class Pointclouds:
|
||||||
"""
|
"""
|
||||||
This class provides functions for working with batches of 3d point clouds,
|
This class provides functions for working with batches of 3d point clouds,
|
||||||
and converting between representations.
|
and converting between representations.
|
||||||
|
@ -8,7 +8,7 @@ from ..transforms import Scale, Transform3d
|
|||||||
from . import utils as struct_utils
|
from . import utils as struct_utils
|
||||||
|
|
||||||
|
|
||||||
class Volumes(object):
|
class Volumes:
|
||||||
"""
|
"""
|
||||||
This class provides functions for working with batches of volumetric grids
|
This class provides functions for working with batches of volumetric grids
|
||||||
of possibly varying spatial sizes.
|
of possibly varying spatial sizes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user