-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
@@ -191,22 +191,23 @@ def _add_index(in_x, parameter): | |||
return {NodeType.INDEX: pos, NodeType.VALUE: item} | |||
else: | |||
return parameter | |||
return None # FIXME: what to return here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xuehui1991 Please check this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not change the logic in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. Though it's still smelly to me.
I'll change FIXME into a note.
@@ -576,6 +570,7 @@ def to_real_keras_layer(layer): | |||
return layers.Flatten() | |||
if is_layer(layer, "GlobalAveragePooling"): | |||
return layers.GlobalAveragePooling2D() | |||
return None # FIXME: should here return or raise? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xuehui1991 And this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not change the logic.
@@ -608,6 +603,7 @@ def is_layer(layer, layer_type): | |||
return isinstance(layer, (StubFlatten,)) | |||
elif layer_type == "GlobalAveragePooling": | |||
return isinstance(layer, StubGlobalPooling) | |||
return None # FIXME: return or raise? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return None. do not change the logic, thank you.
@@ -46,21 +45,20 @@ def trial_end(self, trial_job_id, success): | |||
trial_job_id: identifier of the trial (str). | |||
success: True if the trial successfully completed; False if failed or terminated. | |||
""" | |||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leckie-chn Is this recommended style?
This will cause W0107: Unnecessary pass statement (unnecessary-pass)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently in our pylintrc
file W1017
is not enabled. Are you sure you are using the right version of pylintrc
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using the rc file included in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use https://github.com/microsoft/nni/blob/master/pylintrc
@liuzhe-lz Just to clarify, which modules is this PR fixing? |
With the output on nni SDK with current settings:
|
@leckie-chn For your pylintrc output:
|
Line 45 in 041c3f0
|
@leckie-chn Suggest use |
output w/
|
|
PPO tuner is not touched because I can't understand reported functions. @QuanluZhang
I have not installed all tuner dependencies and disabled
import-error
locally, so it may be incomplete.