nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/execution/BasicGraphExecutioner.java
@Override
    public INDArray[] executeGraph(SameDiff graph, ExecutorConfiguration configuration) {
        return new INDArray[]{graph.execAndEndResult()};
    }
@Override
    public INDArray[] executeGraph(SameDiff graph, ExecutorConfiguration configuration) {
        return new INDArray[]{graph.execAndEndResult()};
    }
@ Override public INDArray [ ] executeGraph ( SameDiff graph , ExecutorConfiguration configuration ) { return new INDArray [ ] { graph . execAndEndResult ( ) } ; }
This method executes given graph and returns results

@param graph
@return
This method executes given graph and returns results