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
55266782
"...git@developer.sourcefind.cn:OpenDAS/openpcdet.git" did not exist on "1d2c3f6b384cf39e9436b5dfdc32c471fd7fc551"
Commit
55266782
authored
Jul 13, 2022
by
Wangbo Zhao(黑色枷锁)
Committed by
Frank Lee
Jul 13, 2022
Browse files
[NFC] polish colossalai/nn/layer/parallel_1d/layers.py code style (#1290)
parent
d6f5ef88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
colossalai/nn/layer/parallel_1d/layers.py
colossalai/nn/layer/parallel_1d/layers.py
+0
-3
No files found.
colossalai/nn/layer/parallel_1d/layers.py
View file @
55266782
...
@@ -176,7 +176,6 @@ class Classifier1D(ParallelLayer):
...
@@ -176,7 +176,6 @@ class Classifier1D(ParallelLayer):
set_parallel_input
(
False
)
set_parallel_input
(
False
)
env
.
vocab_parallel
=
False
env
.
vocab_parallel
=
False
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
fan_in
,
fan_out
=
self
.
in_features
,
self
.
num_classes
fan_in
,
fan_out
=
self
.
in_features
,
self
.
num_classes
if
self
.
has_weight
:
if
self
.
has_weight
:
...
@@ -450,7 +449,6 @@ class Linear1D_Col(ParallelLayer):
...
@@ -450,7 +449,6 @@ class Linear1D_Col(ParallelLayer):
is_parallel_output
=
not
self
.
gather_output
is_parallel_output
=
not
self
.
gather_output
set_parallel_input
(
is_parallel_output
)
set_parallel_input
(
is_parallel_output
)
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
fan_in
,
fan_out
=
self
.
in_features
,
self
.
out_features
fan_in
,
fan_out
=
self
.
in_features
,
self
.
out_features
weight_initializer
(
self
.
weight
,
fan_in
=
fan_in
,
fan_out
=
fan_out
)
weight_initializer
(
self
.
weight
,
fan_in
=
fan_in
,
fan_out
=
fan_out
)
...
@@ -589,7 +587,6 @@ class Linear1D_Row(ParallelLayer):
...
@@ -589,7 +587,6 @@ class Linear1D_Row(ParallelLayer):
self
.
_set_tensor_parallel_attributes
()
self
.
_set_tensor_parallel_attributes
()
set_parallel_input
(
False
)
set_parallel_input
(
False
)
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
def
reset_parameters
(
self
,
weight_initializer
,
bias_initializer
)
->
None
:
fan_in
,
fan_out
=
self
.
in_features
,
self
.
out_features
fan_in
,
fan_out
=
self
.
in_features
,
self
.
out_features
weight_initializer
(
self
.
weight
,
fan_in
=
fan_in
,
fan_out
=
fan_out
)
weight_initializer
(
self
.
weight
,
fan_in
=
fan_in
,
fan_out
=
fan_out
)
...
...
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