Skip to content
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

fix parameter shape in v2 #1752

Merged
merged 1 commit into from
Apr 7, 2017
Merged

Conversation

qingqing01
Copy link
Contributor

@qingqing01 qingqing01 commented Apr 6, 2017

relate book #265

一些Layer在config_parse.py里没有设置parameter的dims,比如conv层,直接获取conf.dims会导致为空。

fix方案1: 在config_parse.py里对这些Layer加上dims。
fix方案2:用(1, conf.size)代替dims。

考虑到重构,采用方案2。

Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent Fixes.

@reyoung reyoung merged commit 8a01644 into PaddlePaddle:develop Apr 7, 2017
@qingqing01 qingqing01 deleted the v2_api_fix branch April 20, 2017 09:48
lizexu123 pushed a commit to lizexu123/Paddle that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants