Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
f586887a
Commit
f586887a
authored
Sep 08, 2022
by
DouJS
Committed by
Frank Lee
Sep 08, 2022
Browse files
[NFC] polish colossalai/nn/layer/colossalai_layer/dropout.py code style (#1568)
parent
c7d49329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/nn/layer/colossalai_layer/dropout.py
colossalai/nn/layer/colossalai_layer/dropout.py
+1
-0
No files found.
colossalai/nn/layer/colossalai_layer/dropout.py
View file @
f586887a
...
...
@@ -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"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment