nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/SameDiff.java
public boolean hasArgs(DifferentialFunction function) {
        val vertexIdArgs = incomingArgsReverse.get(function.getOwnName());
        if (vertexIdArgs != null) {
            val args = incomingArgs.get(vertexIdArgs);
            if (args != null)
                return true;
        }
        return false;
    }
public boolean hasArgs(DifferentialFunction function) {
        val vertexIdArgs = incomingArgsReverse.get(function.getOwnName());
        if (vertexIdArgs != null) {
            val args = incomingArgs.get(vertexIdArgs);
            if (args != null)
                return true;
        }
        return false;
    }
Returns true if this function already
has defined arguments

@param function the function to check
@return true if the function has args false otherwise