mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 12:30:42 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -15,12 +15,14 @@ class FP16NaiveMixedPrecision(MixedPrecision):
|
||||
verbose(bool): if set to `True`, will print debug info.
|
||||
"""
|
||||
|
||||
def __init__(self,
|
||||
log_num_zeros_in_grad: bool,
|
||||
initial_scale: int,
|
||||
growth_factor: int,
|
||||
backoff_factor: float,
|
||||
hysteresis: int,
|
||||
max_scale: int,
|
||||
verbose: bool = None) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
log_num_zeros_in_grad: bool,
|
||||
initial_scale: int,
|
||||
growth_factor: int,
|
||||
backoff_factor: float,
|
||||
hysteresis: int,
|
||||
max_scale: int,
|
||||
verbose: bool = None,
|
||||
) -> None:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user