@@ -0,0 +1,721 @@
+package be.iminds.iot.dianne.nn.module.conv;%0A%0Aimport java.util.UUID;%0A%0Aimport be.iminds.iot.dianne.nn.module.AbstractModule;%0Aimport be.iminds.iot.dianne.tensor.TensorFactory;%0A%0Apublic class SpatialMaxPooling extends AbstractModule %7B%0A%09%0A%09private int w;%0A%09private int h;%0A%09%0A%09public SpatialMaxPooling(TensorFactory factory, %0A%09%09%09int width, int height)%7B%0A%09%09super(factory);%0A%09%09this.w = width;%0A%09%09this.h = height;%0A%09%7D%0A%09%0A%09public SpatialMaxPooling(TensorFactory factory, UUID id,%0A%09%09%09 int width, int height)%7B%0A%09%09super(factory, id);%0A%09%09this.w = width;%0A%09%09this.h = height;%0A%09%7D%0A%0A%09@Override%0A%09protected void forward() %7B%0A%09%09output = factory.getTensorMath().maxpool2D(output, input, w, h);%0A%09%7D%0A%0A%09@Override%0A%09protected void backward() %7B%0A%09%09// TODO %0A%09%7D%0A%09%0A%7D%0A

add spatialmaxpooling forward