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
7cc052f6
Commit
7cc052f6
authored
Sep 08, 2022
by
Ofey Chan
Committed by
Frank Lee
Sep 08, 2022
Browse files
[NFC] polish colossalai/nn/layer/colossalai_layer/linear.py (#1556)
parent
46931e3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
colossalai/nn/layer/colossalai_layer/linear.py
colossalai/nn/layer/colossalai_layer/linear.py
+2
-1
No files found.
colossalai/nn/layer/colossalai_layer/linear.py
View file @
7cc052f6
...
@@ -81,7 +81,8 @@ class Linear(ColossalaiModule):
...
@@ -81,7 +81,8 @@ class Linear(ColossalaiModule):
else
:
else
:
linear_cls
=
_parallel_linear
[
tensor_parallel
]
linear_cls
=
_parallel_linear
[
tensor_parallel
]
gather_output
=
kwargs
.
pop
(
'gather_output'
,
None
)
gather_output
=
kwargs
.
pop
(
'gather_output'
,
None
)
if
'gather_output'
in
inspect
.
signature
(
linear_cls
.
__init__
).
parameters
.
keys
():
# gather_out arg is available
if
'gather_output'
in
inspect
.
signature
(
linear_cls
.
__init__
).
parameters
.
keys
():
# gather_out arg is available
kwargs
[
'gather_output'
]
=
gather_output
kwargs
[
'gather_output'
]
=
gather_output
layer
=
linear_cls
(
layer
=
linear_cls
(
in_features
,
in_features
,
...
...
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