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 14ae4d8 commit 064caf7Copy full SHA for 064caf7
src/lightning/pytorch/plugins/precision/amp.py
@@ -113,9 +113,7 @@ def clip_gradients(
113
114
def autocast_context_manager(self) -> torch.autocast:
115
return torch.autocast(
116
- self.device,
117
- dtype=(torch.bfloat16 if self.precision == "bf16-mixed" else torch.half),
118
- cache_enabled=False
+ self.device, dtype=(torch.bfloat16 if self.precision == "bf16-mixed" else torch.half), cache_enabled=False
119
)
120
121
@override
0 commit comments