Skip to content

Commit 064caf7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 14ae4d8 commit 064caf7

File tree

1 file changed

+1
-3
lines changed
  • src/lightning/pytorch/plugins/precision

1 file changed

+1
-3
lines changed

src/lightning/pytorch/plugins/precision/amp.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ def clip_gradients(
113113

114114
def autocast_context_manager(self) -> torch.autocast:
115115
return torch.autocast(
116-
self.device,
117-
dtype=(torch.bfloat16 if self.precision == "bf16-mixed" else torch.half),
118-
cache_enabled=False
116+
self.device, dtype=(torch.bfloat16 if self.precision == "bf16-mixed" else torch.half), cache_enabled=False
119117
)
120118

121119
@override

0 commit comments

Comments
 (0)