"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "f12d161d6763cff0f45b0ec3b3f6072a2b7c7f9d"
Commit d76c0072 authored by Patrick Labatut's avatar Patrick Labatut Committed by Facebook GitHub Bot
Browse files

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
parent f14c0236
...@@ -11,7 +11,7 @@ from matplotlib import colors as mcolors ...@@ -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): ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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.
......
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