APISonar


org.nd4j.linalg.api.ops.executioner.OpExecutioner.ExecutionMode.JAVA

> org > nd4j > linalg > api > ops > executioner > OpExecutioner > ExecutionMode > JAVA
org APIs nd4j APIs linalg APIs api APIs ops APIs executioner APIs OpExecutioner APIs ExecutionMode APIs JAVA APIs

Example 1
public CosineDistance(INDArray x) {
        super(x);
        passThrough = Nd4j.getExecutioner().executionMode() == OpExecutioner.ExecutionMode.JAVA;
        extraArgs = new Object[2];
        extraArgs[0] = 0.0f;
        extraArgs[1] = 0.0f;
    }
Example 2
public void init(INDArray x, INDArray y, INDArray z, long n) {
        super.init(x, y, z, n);
        if (Nd4j.executionMode == OpExecutioner.ExecutionMode.JAVA) {
            if (biasCorrected)
                this.bias = Nd4j.getExecutioner().execAndReturn(new Bias(x)).getFinalResult().doubleValue();
            mean = Nd4j.getExecutioner().execAndReturn(new Mean(x)).getFinalResult().doubleValue();
        }

    }