code: @Override
      public INDArray scalar(int value, long offset) {
          return create(new int[] {value}, new long[0], new long[0], DataType.INT, Nd4j.getMemoryManager().getCurrentWorkspace());
      }
docs: Create a scalar nd array with the specified value and offset
  
  @param value  the value of the scalar
  @param offset the offset of the ndarray
  @return the scalar nd array