public SDVariable createView(String name, SDVariable input, SDVariable... indices) {
    Preconditions.checkArgument(indices.length >= 0, "indices has incorrect size/length. Expected: indices.length >= 0, got %s", indices.length);
    SDVariable out =  new org.nd4j.linalg.api.ops.impl.shape.CreateView(sd,input, indices).outputVariable();
    return sd.updateVariableNameAndReference(out, name);
  }