public void setGradientForVariableName(String variableName, SDVariable variable) {
        if (variable == null) {
            throw new ND4JIllegalStateException("Unable to set null gradient for variable name " + variableName);
        }

        gradients.put(variableName, variable);
    }
public void setGradientForVariableName(String variableName, SDVariable variable) {
        if (variable == null) {
            throw new ND4JIllegalStateException("Unable to set null gradient for variable name " + variableName);
        }

        gradients.put(variableName, variable);
    }
public void setGradientForVariableName ( String variableName , SDVariable variable ) { if ( variable == null ) { throw new ND4JIllegalStateException ( "Unable to set null gradient for variable name " + variableName ) ; } gradients . put ( variableName , variable ) ; }
Assign a vertex id
to a gradient

@param variableName the vertex id
to assign
@param variable     the variable
Assign a vertex id to a gradient