You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm trying to use MiniDNN to build CNN under C++. It seems there's no padding constructor in the configuration of convolutional layer. I was wondering if I want to add that feature, what do you recommand to do?
The text was updated successfully, but these errors were encountered:
Unfortunately MiniDNN has not yet implemented padding types other than the "valid" rule. It is indeed some tedious work to write such low-level functions, and probably you should take a look at the tiny-dnn library, which supports different padding rules according to the documentation.
Hi @yuqi98, Although it is not supported in MiniDNN, it can surely be done using the Eigen matrix library which it uses under the hood. A quick google search gave following ways:
Mind that the techniques are not optimal as a copy operation is needed. Instead I would recommend using conservativeResize as it directly manipulates the pointers of the underlying array base class. All you will need after that would be to filling the desired pad values (if not zero) using block ops.
Do let me know if you are planning to do that, we can may be collaborate.
Hi! I'm trying to use MiniDNN to build CNN under C++. It seems there's no padding constructor in the configuration of convolutional layer. I was wondering if I want to add that feature, what do you recommand to do?
The text was updated successfully, but these errors were encountered: