Skip to content

Commit

Permalink
Update composer/callbacks/oom_observer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mihir Patel <[email protected]>
  • Loading branch information
cli99 and mvpatel2000 authored Feb 2, 2024
1 parent 43118ca commit 5a74d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer/callbacks/oom_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(
else:
self.remote_path_in_bucket = None

if version.parse(torch.__version__) > version.parse('2.1.0.dev'): # type: ignore
if version.parse(torch.__version__.split('.dev')[0]) >= version.parse('2.1.0'): # type: ignore
# OOMObserver is only supported in torch v2.1.0-rc1 or higher
self._enabled = True
else:
Expand Down

0 comments on commit 5a74d34

Please sign in to comment.