Class HardwareInfo


  • public class HardwareInfo
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HardwareInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long allocatedMLSize()
      Returns the number of bytes currently allocated by the ML inference engine.
      static long compactMLNativeMemory()
      If possible, compacts the native memory pressure of the ML inference engine.
      static java.lang.String getHardwareInfo()
      Returns the JSON containing all the information about the hardware the code is being executed on.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HardwareInfo

        public HardwareInfo()
    • Method Detail

      • getHardwareInfo

        @NonNull
        public static java.lang.String getHardwareInfo()
        Returns the JSON containing all the information about the hardware the code is being executed on.
      • compactMLNativeMemory

        public static long compactMLNativeMemory()
        If possible, compacts the native memory pressure of the ML inference engine. Keep in mind that this may reduce scanning performance.
        Returns:
        Number of bytes still allocated by the ML inference engine.
      • allocatedMLSize

        public static long allocatedMLSize()
        Returns the number of bytes currently allocated by the ML inference engine.
        Returns:
        the number of bytes currently allocated by the ML inference engine.