-
Notifications
You must be signed in to change notification settings - Fork 5.9k
add param_attr to nce_layer and enable multiple inputs. #2134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add param_attr to nce_layer and enable multiple inputs. #2134
Conversation
|
Please add unit test in |
| input = [input] | ||
| assert not isinstance(param_attr, collections.Sequence) | ||
| param_attr = [param_attr] | ||
| else: |
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.
please add simple usage in annotation when input is not LayerOutput, i.e, add simple usage for else branch.
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.
done.
b001077 to
c27a4ca
Compare
c27a4ca to
7556cef
Compare
lcy-seso
left a comment
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.
follow comments.
| input = [input] | ||
| assert not isinstance(param_attr, collections.Sequence) | ||
| param_attr = [param_attr] | ||
| else: |
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.
done.
add param_attr to the nce_layer and enable multiple inputs.