public INDArray [ ] eval ( Map < String , INDArray > inputs ) { SameDiff execPipeline = dup ( ) ; List < DifferentialFunction > opExecAction = execPipeline . exec ( ) . getRight ( ) ; if ( opExecAction . isEmpty ( ) ) throw new IllegalStateException ( "No ops found to execute." ) ; INDArray [ ] ret = new INDArray [ opExecAction . size ( ) ] ; for ( int i = 0 ; i < ret . length ; i ++ ) { val varName = opExecAction . get ( i ) . outputVariables ( ) [ 0 ] . getVarName ( ) ; ret [ i ] = execPipeline . getArrForVarName ( varName ) ; } return ret ; }
Evaluate the given inputs based on the current graph