code: public SDVariable dot(String name, SDVariable x, SDVariable y, int... dimensions) {
          SDValidation.validateNumerical("dot", x, y);
          SDVariable ret = f().dot(x, y, dimensions);
          return updateVariableNameAndReference(ret, name);
      }
docs: TODO doc string
  
  @param name
  @param x
  @param y
  @param dimensions
  @return