Add ceil_mode to max pooling and average pooling#995
Add ceil_mode to max pooling and average pooling#995beru merged 7 commits intotiny-dnn:masterfrom hzxie:feat/ceil_mode
Conversation
|
The compile error can be resolved by adding two constructors (that make API unchanged): and But I don't think it is a good solution. |
|
@edgarriba Please also review this PR. |
There was a problem hiding this comment.
I've come to conclusion that having a lot of constructor arguments (and overloaded constructors...) leads to dead end.
Specifying layer parameters with string argument is more robust and generic solution and runtime parsing cost should be very negligible compared to actual computations.
C++ Designated initializers can be another solution but we have to wait for C++20.
|
@beru So how to solve this problem? |
|
@hzxie I didn't understand the problem. Let me check how to update However, I still think this library's design around having massive amount of overloaded constructors hinders maintainability... |
|
I guess |
|
@beru |
See PR #3057 in Caffe.
However, I cannot build tests and examples.
I think it is caused by something defined in
caffe.proto.I've added following line into
caffe.proto, but still not working.And here's the error message:
What should I do to fix this error?