-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 ImageExpandFunction. #2449
Add ImageExpandFunction. #2449
Conversation
… and Col2ImFunctor interfaces.
namespace paddle { | ||
|
||
/* The storage format of the coldata in the Im2ColFunctor and Col2ImFunctor. */ | ||
enum ColFormat { kCFO = 0, kOCF = 1 }; |
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.
这两种格式在Layer里都用嘛? 我印象中只用了一种吧。 有两种的话,会导致weight是转置关系吗?
C: input channel
F: filter
O: output channel
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.
kCFO
是用在GemmConvFunction卷积计算中的;kOCF
是用在这个PR的BlockExpandFunction中的,原先BlockExpandLayer中是用的kCFO
这种方式,不过计算完了,还需要再做一次转置才行。
Almost LGTM. |
Fix #2424. Need pr #2282 .