-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Demostrate fully connected layer without any helper #4724
Conversation
python/paddle/v2/framework/layer.py
Outdated
|
||
if not isinstance(param_attr, list) and not isinstance(param_attr, tuple): | ||
raise TypeError( | ||
"param attribute of fc should be a dict, or a sequence of dict") |
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.
if param_attr
is a list of non-dict type, it will also pass all the above checks.
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.
} | ||
} | ||
|
||
if bias_attr: |
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.
Seems bias_attr
will never be None
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.
Yes. bias_attr is False
by default. If bias_attr is False, there is no bias. If bias_attr is None or True, a default bias attr will be set.
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.
37ed6f6
to
cb8abd3
Compare
No description provided.