mirror of https://github.com/hpcaitech/ColossalAI
[NFC] Fix format for mixed precision (#4253)
* [NFC] polish colossalai/booster/mixed_precision/mixed_precision_base.py code stylepull/4338/head
parent
02192a632e
commit
b366f1d99f
|
@ -13,10 +13,11 @@ class MixedPrecision(ABC):
|
|||
"""
|
||||
|
||||
@abstractmethod
|
||||
def configure(self,
|
||||
model: nn.Module,
|
||||
optimizer: Optional[Optimizer] = None,
|
||||
criterion: Optional[Callable] = None,
|
||||
) -> Tuple[nn.Module, OptimizerWrapper, Callable]:
|
||||
def configure(
|
||||
self,
|
||||
model: nn.Module,
|
||||
optimizer: Optional[Optimizer] = None,
|
||||
criterion: Optional[Callable] = None,
|
||||
) -> Tuple[nn.Module, OptimizerWrapper, Callable]:
|
||||
# TODO: implement this method
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue