APISonar


org.nd4j.linalg.api.ops.impl.transforms.strict.Log.Log

> org > nd4j > linalg > api > ops > impl > transforms > strict > Log > Log
org APIs nd4j APIs linalg APIs api APIs ops APIs impl APIs transforms APIs strict APIs Log APIs Log APIs

Example 1
public void testStridedLog() {
        OpExecutioner opExecutioner = Nd4j.getExecutioner();
        INDArray arr = Nd4j.linspace(1, 6, 6, DataType.DOUBLE).reshape(2, 3);
        INDArray slice = arr.slice(0);
        Log exp = new Log(slice);
        opExecutioner.exec(exp);
        INDArray assertion = Nd4j.create(new double[] {0.0, 0.6931471824645996, 1.0986123085021973});
        assertEquals(getFailureMessage(), assertion, slice);
    }