Browse Source

[NFC] Fix format for mixed precision (#4253)

* [NFC] polish colossalai/booster/mixed_precision/mixed_precision_base.py code style
pull/4338/head
Jianghai 1 year ago committed by binmakeswell
parent
commit
b366f1d99f
  1. 3
      colossalai/booster/mixed_precision/mixed_precision_base.py

3
colossalai/booster/mixed_precision/mixed_precision_base.py

@ -13,7 +13,8 @@ class MixedPrecision(ABC):
""" """
@abstractmethod @abstractmethod
def configure(self, def configure(
self,
model: nn.Module, model: nn.Module,
optimizer: Optional[Optimizer] = None, optimizer: Optional[Optimizer] = None,
criterion: Optional[Callable] = None, criterion: Optional[Callable] = None,

Loading…
Cancel
Save