org.nd4j.linalg.api.ops.Module Maven / Gradle / Ivy
package org.nd4j.linalg.api.ops;
import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.linalg.api.ndarray.INDArray;
/**
* A Module is a {@link CustomOp}
* with varying input arguments
* and automatically calculated outputs
* defined at a higher level than c++.
*
* A Module is meant to be a way of implementing custom operations
* in straight java/nd4j.
*/
public interface Module extends CustomOp {
/**
*
* @param inputs
*/
void exec(INDArray... inputs);
Module[] subModules();
void addModule(Module module);
void execSameDiff(SDVariable... input);
}