We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3287425 commit 202e6c1Copy full SHA for 202e6c1
src/accelerate/utils/dataclasses.py
@@ -1020,7 +1020,7 @@ def __post_init__(self):
1020
self.mode = os.environ.get(prefix + "MODE", "default")
1021
if self.fullgraph is None:
1022
self.fullgraph = str_to_bool(os.environ.get(prefix + "USE_FULLGRAPH", "False")) == 1
1023
- if self.dynamic is None:
+ if self.dynamic is None and os.environ.get(prefix + "USE_DYNAMIC", None) is not None:
1024
self.dynamic = str_to_bool(os.environ.get(prefix + "USE_DYNAMIC", "False")) == 1
1025
1026
def to_dict(self):
0 commit comments