Class SbeStatsInitializationReport

    • Constructor Detail

      • SbeStatsInitializationReport

        public SbeStatsInitializationReport()
    • Method Detail

      • reportSoftwareInfo

        public void reportSoftwareInfo​(String arch,
                                       String osName,
                                       String jvmName,
                                       String jvmVersion,
                                       String jvmSpecVersion,
                                       String nd4jBackendClass,
                                       String nd4jDataTypeName,
                                       String hostname,
                                       String jvmUid,
                                       Map<String,​String> swEnvironmentInfo)
        Specified by:
        reportSoftwareInfo in interface StatsInitializationReport
        Parameters:
        arch - Operating system architecture, as reported by JVM
        osName - Operating system name
        jvmName - JVM name
        jvmVersion - JVM version
        jvmSpecVersion - JVM Specification version (for example, 1.8)
        nd4jBackendClass - ND4J backend Factory class
        nd4jDataTypeName - ND4J datatype name
        hostname - Hostname for the machine, if available
        jvmUid - A unique identified for the current JVM. Should be shared by all instances in the same JVM. Should vary for different JVMs on the same machine.
        swEnvironmentInfo - Environment information: Usually from Nd4j.getExecutioner().getEnvironmentInformation()
      • reportHardwareInfo

        public void reportHardwareInfo​(int jvmAvailableProcessors,
                                       int numDevices,
                                       long jvmMaxMemory,
                                       long offHeapMaxMemory,
                                       long[] deviceTotalMemory,
                                       String[] deviceDescription,
                                       String hardwareUID)
        Specified by:
        reportHardwareInfo in interface StatsInitializationReport
        Parameters:
        jvmAvailableProcessors - Number of available processor cores according to the JVM
        numDevices - Number of compute devices (GPUs)
        jvmMaxMemory - Maximum memory for the JVM
        offHeapMaxMemory - Maximum off-heap memory
        deviceTotalMemory - GPU memory by device: same length as numDevices. May be null, if numDevices is 0
        deviceDescription - Description of each device. May be null, if numDevices is 0
        hardwareUID - A unique identifier for the machine. Should be shared by all instances running on the same machine, including in different JVMs
      • reportModelInfo

        public void reportModelInfo​(String modelClassName,
                                    String modelConfigJson,
                                    String[] modelParamNames,
                                    int numLayers,
                                    long numParams)
        Description copied from interface: StatsInitializationReport
        Report the model information
        Specified by:
        reportModelInfo in interface StatsInitializationReport
        Parameters:
        modelClassName - Model class name: i.e., type of model
        modelConfigJson - Model configuration, as JSON string
        numLayers - Number of layers in the model
        numParams - Number of parameters in the model
      • encode

        public void encode​(org.agrona.MutableDirectBuffer buffer)
        Specified by:
        encode in interface AgronaPersistable
      • decode

        public void decode​(byte[] decode)
        Specified by:
        decode in interface Persistable
      • decode

        public void decode​(org.agrona.DirectBuffer buffer)
        Specified by:
        decode in interface AgronaPersistable