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
666cfd09
"...git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "cd9c28e05595e800dc14cf9d0cc2f0bcc842129e"
Commit
666cfd09
authored
Mar 31, 2022
by
Wesley
Committed by
アマデウス
Mar 31, 2022
Browse files
fix parallel_input flag for Linear1D_Col gather_output
parent
a9f778f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
colossalai/nn/layer/parallel_1d/layers.py
colossalai/nn/layer/parallel_1d/layers.py
+4
-1
No files found.
colossalai/nn/layer/parallel_1d/layers.py
View file @
666cfd09
...
...
@@ -302,7 +302,10 @@ class Linear1D_Col(ParallelLayer):
with
seed
(
ParallelMode
.
TENSOR
):
self
.
reset_parameters
(
weight_initializer
,
bias_initializer
)
self
.
_set_tensor_parallel_attributes
()
set_parallel_input
(
True
)
if
self
.
gather_output
:
set_parallel_input
(
False
)
else
:
set_parallel_input
(
True
)
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
fan_in
,
fan_out
=
self
.
in_features
,
self
.
out_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