Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Disable not-callable in pylint (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultmaster authored Jun 30, 2021
1 parent 8f01c77 commit 7f96427
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nni/algorithms/hpo/networkmorphism_tuner/graph_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,21 @@ def create_new_layer(layer, n_dim):
new_layer = StubDense(input_shape[0], input_shape[0])

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):
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
)

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):
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:
new_layer = layer_class()
new_layer = layer_class() # pylint: disable=not-callable

return new_layer

Expand Down

0 comments on commit 7f96427

Please sign in to comment.