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 0791bda commit 30efd0cCopy full SHA for 30efd0c
mmengine/_strategy/base.py
@@ -322,8 +322,8 @@ def compile_model(
322
Returns:
323
nn.Module: Compiled model.
324
"""
325
- if isinstance(compile, bool) and not compile or \
326
- isinstance(compile, dict) and not compile.get('disable', False):
+ if (isinstance(compile, bool) and not compile) or \
+ (isinstance(compile, dict) and compile.get('disable', False)):
327
return model
328
329
assert digit_version(TORCH_VERSION) >= digit_version('2.0.0'), (
0 commit comments