code: public static byte getOrderAsByte() {
          if (ByteOrder.nativeOrder().equals(ByteOrder.BIG_ENDIAN))
              return org.nd4j.graph.ByteOrder.BE;
          else
              return org.nd4j.graph.ByteOrder.LE;
      }
docs: This method returns current byte order for this JVM as libnd4j enum
  
  @return