All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nd4j.linalg.api.ops.Module Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
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);




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy