nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SameDiff.java
public List<SDVariable> getVariablesAssociatedWithFunctions(List<DifferentialFunction> functions) {
        List<SDVariable> ret = new ArrayList<>(functions.size());
        for (DifferentialFunction function : functions) {
            ret.addAll(Arrays.asList(function.outputVariables()));
        }

        return ret;
    }
public List<SDVariable> getVariablesAssociatedWithFunctions(List<DifferentialFunction> functions) {
        List<SDVariable> ret = new ArrayList<>(functions.size());
        for (DifferentialFunction function : functions) {
            ret.addAll(Arrays.asList(function.outputVariables()));
        }

        return ret;
    }
public List < SDVariable > getVariablesAssociatedWithFunctions ( List < DifferentialFunction > functions ) { List < SDVariable > ret = new ArrayList <> ( functions . size ( ) ) ; for ( DifferentialFunction function : functions ) { ret . addAll ( Arrays . asList ( function . outputVariables ( ) ) ) ; } return ret ; }
Get the {@link SDVariable}
associated with each function
based on the {@link DifferentialFunction#outputVariables()} ()}

@param functions the functions to get the variables for
@return the list of variables associated with the given {@link DifferentialFunction}
Get the { @link SDVariable } associated with each function based on the { @link DifferentialFunction#outputVariables () } () }