Closed ghost closed 8 years ago
@seyounglee95 We should add a unit test for pooling layers.
+1 for adding tests.
@beomyeol Thank you for your review. I resolved some problem. Please take a look.
@seyounglee95 I'll do a pass.
@seyounglee95 I finished my pass and left some comments.
I also have a concern that IllegalArgumentException
will be thrown when users do not specify pooling_type
as uppercase. We should convert poolingType
to uppercase in the constructor of PoolingLayer
before PoolType.valueOf()
.
@seyounglee95 Could you add the description for pooling layers in dolphin-dnn
README?
@beomyeol Thank you for your comments. I added the description in README and resolved the problem about the output shape that is not divided by stride. Please take a look.
Even though we describe that pooling layers only support 2D input, it will be better to throw an explicit exception indicating that users try to use not supported operation. What do you think of this?
@seyounglee95 This looks awesome! I'm merging this. :)
This PR includes full implementation for pooling layer. Now
PoolingLayerParameterInitializer.java
has function that checks the shape of output before being used in calculation. Also, 1D output would be transformed into 2D output for the convenience of calculation. InPoolingLayer.java
, concrete codes forfeedForwardMaxPooling()
,feedForwardAveragePooling()
,backPropagateMaxPooling()
andbackPropagateAveragePooling()
are added.