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

org.nd4j.linalg.api.ops.custom.BarnesHutGains Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.nd4j.linalg.api.ops.custom;

import lombok.val;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ops.DynamicCustomOp;

/**
 * This op calculates gains - data used internally by Barnes-Hut-TSNE algorithm.
 *
 * @author [email protected]
 */
public class BarnesHutGains extends DynamicCustomOp {

    public BarnesHutGains(){ }

    public BarnesHutGains(INDArray output, INDArray input, INDArray gradx, INDArray epsilon) {

        inputArguments.add(input);
        inputArguments.add(gradx);
        inputArguments.add(epsilon);

        outputArguments.add(output);
    }

    @Override
    public String opName() {
        return "barnes_gains";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy