Skip to content

Commit 95df090

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Del (object) from 10 inc pytorch/inplace_abn/scripts/imagenet/utils.py
Summary: Python3 makes the use of `(object)` in class inheritance unnecessary. Let's modernize our code by eliminating this. Reviewed By: meyering Differential Revision: D48957980 fbshipit-source-id: ef91fea76e0d4647d1c447429b8c377e81e121ab
1 parent 79bdfac commit 95df090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opacus/utils/batch_memory_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def wrap_data_loader(
116116
)
117117

118118

119-
class BatchMemoryManager(object):
119+
class BatchMemoryManager:
120120
"""
121121
Context manager to manage memory consumption during training.
122122

0 commit comments

Comments
 (0)