Uses of Interface
org.nd4j.autodiff.samediff.SameDiffSingleLambda
-
Packages that use SameDiffSingleLambda Package Description org.nd4j.autodiff.samediff -
-
Uses of SameDiffSingleLambda in org.nd4j.autodiff.samediff
Methods in org.nd4j.autodiff.samediff that return SameDiffSingleLambda Modifier and Type Method Description static SameDiffSingleLambdaControlFlow. condBody()Returns a lambda that takes in a custom condition and a built-in for loop counter concept in the following manner: int currIteration = 0; boolean cond = ...; int maxIterations = ...; for(int i = currIteration; i < maxIterations && cond; i++) { //body....Methods in org.nd4j.autodiff.samediff with parameters of type SameDiffSingleLambda Modifier and Type Method Description static SDVariable[]ControlFlow. whileLoop(SameDiff sameDiff, String[] outputNames, String loopName, @NonNull SDVariable[] loopVars, @NonNull SameDiffSingleLambda cond, @NonNull SameDiffLambda body)Constructs a While loop using the tensorflow style control flow operations (Switch, Merge, Enter, Exit, and NextIteration)SDVariable[]SameDiff. whileLoop(@NonNull SDVariable[] loopVars, @NonNull SameDiffSingleLambda cond, @NonNull SameDiffLambda body)SDVariable[]SameDiff. whileLoop(String[] outputNames, String loopName, @NonNull SDVariable[] loopVars, @NonNull SameDiffSingleLambda cond, @NonNull SameDiffLambda body)Constructs a While loop using the tensorflow style control flow operations (Switch, Merge, Enter, Exit, and NextIteration) Repeatedly executes body on the loop variables and updates them with the results, until cond evaluates to false Note that cond and body lambdas are only called once to construct the graph.SDVariable[]SameDiff. whileLoop(String loopName, @NonNull SDVariable[] loopVars, @NonNull SameDiffSingleLambda cond, @NonNull SameDiffLambda body)
-