mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-30 09:12:11 +00:00
[NFC] polish colossalai/nn/layer/colossalai_layer/dropout.py code style (#1568)
This commit is contained in:
parent
c7d4932956
commit
f586887a90
@ -13,6 +13,7 @@ class Dropout(ColossalaiModule):
|
||||
p (float, optional): probability of an element to be zeroed, defaults 0.5.
|
||||
inplace (bool, optional): whether to do dropout in-place, default to be False.
|
||||
"""
|
||||
|
||||
def __init__(self, p: float = 0.5, inplace: bool = False) -> None:
|
||||
tensor_parallel = get_tensor_parallel_mode()
|
||||
if tensor_parallel == "1d":
|
||||
|
Loading…
Reference in New Issue
Block a user