@@ -0,0 +1,2010 @@
+package be.iminds.iot.dianne.nn.module;%0A%0Aimport be.iminds.iot.dianne.tensor.Tensor;%0A%0Apublic class ModuleOps %7B%0A%0A%09public static native Tensor tanh(Tensor output, final Tensor input);%0A%0A%09public static native Tensor tanhDin(Tensor gradInput, final Tensor gradOutput, final Tensor output);%0A%0A%09%0A%09public static native Tensor sigmoid(Tensor output, final Tensor input);%0A%0A%09public static native Tensor sigmoidDin(Tensor gradInput, final Tensor gradOutput, final Tensor output);%0A%09%0A%09%0A%09public static native Tensor threshold(Tensor output, final Tensor input, %0A%09%09%09final float threshold, final float coeff, final float offset);%0A%0A%09public static native Tensor thresholdDin(Tensor gradInput, final Tensor gradOutput, final Tensor input, final float threshold, final float coeff);%0A%09%0A%0A%09public static native Tensor softmax(Tensor output, final Tensor input);%0A%0A%09public static native Tensor softmaxDin(Tensor gradInput, final Tensor gradOutput, final Tensor output);%0A%09%0A%0A%09public static native Tensor spatialmaxpool(Tensor output, final Tensor input, %0A%09%09%09final int kW, final int kH, final int dW, final int dH, final int padW, final int padH);%0A%0A%09public static native Tensor spatialmaxpoolDin(Tensor gradInput, final Tensor gradOutput, final Tensor input,%0A%09%09%09final int kW, final int kH, final int dW, final int dH, final int padW, final int padH);%0A%0A%09%0A%09public static native Tensor spatialconvolve(Tensor output, final Tensor input, final Tensor kernels, final Tensor bias, %0A%09%09%09final int strideX, final int strideY, final int padX, final int padY);%0A%0A%09public static native Tensor spatialconvolveDin(Tensor gradInput, final Tensor gradOutput, final Tensor kernels, %0A%09%09%09final int strideX, final int strideY, final int padX, final int padY);%0A%0A%09public static native Tensor spatialconvolveDker(Tensor gradKer, final Tensor add, final Tensor gradOutput, final Tensor input,%0A%09%09%09final int strideX, final int strideY, final int padX, final int padY);%0A%09%0A%09public static native Tensor spatialconvolveDbias(Tensor gradBias, final Tensor gradOutput);%0A%09%0A%7D%0A

add ModuleOps to nn.module project for native module interface