public class HardwareInfo
extends java.lang.Object
Constructor and Description |
---|
HardwareInfo() |
Modifier and Type | Method and 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.
|
@NonNull public static java.lang.String getHardwareInfo()
public static long compactMLNativeMemory()
public static long allocatedMLSize()