Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
7f964274
Unverified
Commit
7f964274
authored
Jun 30, 2021
by
Yuge Zhang
Committed by
GitHub
Jun 30, 2021
Browse files
Disable not-callable in pylint (#3887)
parent
8f01c779
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
nni/algorithms/hpo/networkmorphism_tuner/graph_transformer.py
...algorithms/hpo/networkmorphism_tuner/graph_transformer.py
+5
-5
No files found.
nni/algorithms/hpo/networkmorphism_tuner/graph_transformer.py
View file @
7f964274
...
@@ -96,21 +96,21 @@ def create_new_layer(layer, n_dim):
...
@@ -96,21 +96,21 @@ def create_new_layer(layer, n_dim):
new_layer
=
StubDense
(
input_shape
[
0
],
input_shape
[
0
])
new_layer
=
StubDense
(
input_shape
[
0
],
input_shape
[
0
])
elif
layer_class
==
get_dropout_class
(
n_dim
):
elif
layer_class
==
get_dropout_class
(
n_dim
):
new_layer
=
layer_class
(
Constant
.
DENSE_DROPOUT_RATE
)
new_layer
=
layer_class
(
Constant
.
DENSE_DROPOUT_RATE
)
# pylint: disable=not-callable
elif
layer_class
==
get_conv_class
(
n_dim
):
elif
layer_class
==
get_conv_class
(
n_dim
):
new_layer
=
layer_class
(
new_layer
=
layer_class
(
# pylint: disable=not-callable
input_shape
[
-
1
],
input_shape
[
-
1
],
sample
((
1
,
3
,
5
),
1
)[
0
],
stride
=
1
input_shape
[
-
1
],
input_shape
[
-
1
],
sample
((
1
,
3
,
5
),
1
)[
0
],
stride
=
1
)
)
elif
layer_class
==
get_batch_norm_class
(
n_dim
):
elif
layer_class
==
get_batch_norm_class
(
n_dim
):
new_layer
=
layer_class
(
input_shape
[
-
1
])
new_layer
=
layer_class
(
input_shape
[
-
1
])
# pylint: disable=not-callable
elif
layer_class
==
get_pooling_class
(
n_dim
):
elif
layer_class
==
get_pooling_class
(
n_dim
):
new_layer
=
layer_class
(
sample
((
1
,
3
,
5
),
1
)[
0
])
new_layer
=
layer_class
(
sample
((
1
,
3
,
5
),
1
)[
0
])
# pylint: disable=not-callable
else
:
else
:
new_layer
=
layer_class
()
new_layer
=
layer_class
()
# pylint: disable=not-callable
return
new_layer
return
new_layer
...
...
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