Skip to content

Commit

Permalink
Del (object) from 10 inc pytorch/inplace_abn/scripts/imagenet/utils.py
Browse files Browse the repository at this point in the history
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
  • Loading branch information
r-barnes authored and facebook-github-bot committed Sep 6, 2023
1 parent 79bdfac commit 95df090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opacus/utils/batch_memory_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def wrap_data_loader(
)


class BatchMemoryManager(object):
class BatchMemoryManager:
"""
Context manager to manage memory consumption during training.
Expand Down

0 comments on commit 95df090

Please sign in to comment.