nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SameDiff.java
public void updateVariable(String variableName, INDArray arr) {
        if (!variableNameToArr.containsKey(variableName))
            putArrayForVarName(variableName, arr);
        else
            updateArrayForVarName(variableName, arr);
    }
public void updateVariable(String variableName, INDArray arr) {
        if (!variableNameToArr.containsKey(variableName))
            putArrayForVarName(variableName, arr);
        else
            updateArrayForVarName(variableName, arr);
    }
public void updateVariable ( String variableName , INDArray arr ) { if ( ! variableNameToArr . containsKey ( variableName ) ) putArrayForVarName ( variableName , arr ) ; else updateArrayForVarName ( variableName , arr ) ; }
Update the {@link INDArray}
ndarray for the given variable name

@param variableName the variable to update
@param arr          the array to update with
Update the { @link INDArray } ndarray for the given variable name