[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 02192a632e
commit b366f1d99f

@ -13,10 +13,11 @@ class MixedPrecision(ABC):
""" """
@abstractmethod @abstractmethod
def configure(self, def configure(
model: nn.Module, self,
optimizer: Optional[Optimizer] = None, model: nn.Module,
criterion: Optional[Callable] = None, optimizer: Optional[Optimizer] = None,
) -> Tuple[nn.Module, OptimizerWrapper, Callable]: criterion: Optional[Callable] = None,
) -> Tuple[nn.Module, OptimizerWrapper, Callable]:
# TODO: implement this method # TODO: implement this method
pass pass

Loading…
Cancel
Save