public class JavaStatsInitializationReport extends java.lang.Object implements StatsInitializationReport
StatsInitializationReport, mainly used for
 Java 7 compatibility| Constructor and Description | 
|---|
| JavaStatsInitializationReport() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | decode(byte[] decode)Decode the content of the given
 byte array in to this persistable | 
| void | decode(java.nio.ByteBuffer buffer)Decode from the given  ByteBuffer | 
| void | decode(java.io.InputStream inputStream)Decode from the given input stream | 
| byte[] | encode() | 
| void | encode(java.nio.ByteBuffer buffer)Encode this persistable in to a  ByteBuffer | 
| void | encode(java.io.OutputStream outputStream)Encode this persistable in to an output stream | 
| int | encodingLengthBytes()Length of the encoding, in bytes, when using  Persistable.encode()Length may be different usingPersistable.encode(OutputStream), due to things like stream headers | 
| boolean | hasHardwareInfo() | 
| boolean | hasModelInfo() | 
| boolean | hasSoftwareInfo() | 
| void | reportHardwareInfo(int jvmAvailableProcessors,
                  int numDevices,
                  long jvmMaxMemory,
                  long offHeapMaxMemory,
                  long[] deviceTotalMemory,
                  java.lang.String[] deviceDescription,
                  java.lang.String hardwareUID) | 
| void | reportIDs(java.lang.String sessionID,
         java.lang.String typeID,
         java.lang.String workerID,
         long timeStamp) | 
| void | reportModelInfo(java.lang.String modelClassName,
               java.lang.String modelConfigJson,
               java.lang.String[] modelParamNames,
               int numLayers,
               long numParams)Report the model information | 
| void | reportSoftwareInfo(java.lang.String arch,
                  java.lang.String osName,
                  java.lang.String jvmName,
                  java.lang.String jvmVersion,
                  java.lang.String jvmSpecVersion,
                  java.lang.String nd4jBackendClass,
                  java.lang.String nd4jDataTypeName,
                  java.lang.String hostname,
                  java.lang.String jvmUid,
                  java.util.Map<java.lang.String,java.lang.String> swEnvironmentInfo) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHwDeviceDescription, getHwDeviceTotalMemory, getHwHardwareUID, getHwJvmAvailableProcessors, getHwJvmMaxMemory, getHwNumDevices, getHwOffHeapMaxMemory, getModelClassName, getModelConfigJson, getModelNumLayers, getModelNumParams, getModelParamNames, getSwArch, getSwEnvironmentInfo, getSwHostName, getSwJvmName, getSwJvmSpecVersion, getSwJvmUID, getSwJvmVersion, getSwNd4jBackendClass, getSwNd4jDataTypeName, getSwOsNamegetSessionID, getTimeStamp, getTypeID, getWorkerIDpublic void reportIDs(java.lang.String sessionID,
                      java.lang.String typeID,
                      java.lang.String workerID,
                      long timeStamp)
reportIDs in interface StatsInitializationReportpublic void reportSoftwareInfo(java.lang.String arch,
                               java.lang.String osName,
                               java.lang.String jvmName,
                               java.lang.String jvmVersion,
                               java.lang.String jvmSpecVersion,
                               java.lang.String nd4jBackendClass,
                               java.lang.String nd4jDataTypeName,
                               java.lang.String hostname,
                               java.lang.String jvmUid,
                               java.util.Map<java.lang.String,java.lang.String> swEnvironmentInfo)
reportSoftwareInfo in interface StatsInitializationReportarch - Operating system architecture, as reported by JVMosName - Operating system namejvmName - JVM namejvmVersion - JVM versionjvmSpecVersion - JVM Specification version (for example, 1.8)nd4jBackendClass - ND4J backend Factory classnd4jDataTypeName - ND4J datatype namehostname - Hostname for the machine, if availablejvmUid - 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()public void reportHardwareInfo(int jvmAvailableProcessors,
                               int numDevices,
                               long jvmMaxMemory,
                               long offHeapMaxMemory,
                               long[] deviceTotalMemory,
                               java.lang.String[] deviceDescription,
                               java.lang.String hardwareUID)
reportHardwareInfo in interface StatsInitializationReportjvmAvailableProcessors - Number of available processor cores according to the JVMnumDevices - Number of compute devices (GPUs)jvmMaxMemory - Maximum memory for the JVMoffHeapMaxMemory - Maximum off-heap memorydeviceTotalMemory - GPU memory by device: same length as numDevices. May be null, if numDevices is 0deviceDescription - Description of each device. May be null, if numDevices is 0hardwareUID - A unique identifier for the machine. Should be shared by all instances running on
                               the same machine, including in different JVMspublic void reportModelInfo(java.lang.String modelClassName,
                            java.lang.String modelConfigJson,
                            java.lang.String[] modelParamNames,
                            int numLayers,
                            long numParams)
StatsInitializationReportreportModelInfo in interface StatsInitializationReportmodelClassName - Model class name: i.e., type of modelmodelConfigJson - Model configuration, as JSON stringnumLayers - Number of layers in the modelnumParams - Number of parameters in the modelpublic boolean hasSoftwareInfo()
hasSoftwareInfo in interface StatsInitializationReportpublic boolean hasHardwareInfo()
hasHardwareInfo in interface StatsInitializationReportpublic boolean hasModelInfo()
hasModelInfo in interface StatsInitializationReportpublic int encodingLengthBytes()
PersistablePersistable.encode()
 Length may be different using Persistable.encode(OutputStream), due to things like stream headersencodingLengthBytes in interface Persistablepublic byte[] encode()
encode in interface Persistablepublic void encode(java.nio.ByteBuffer buffer)
PersistableByteBufferencode in interface Persistablepublic void encode(java.io.OutputStream outputStream)
            throws java.io.IOException
Persistableencode in interface Persistablejava.io.IOExceptionpublic void decode(byte[] decode)
Persistabledecode in interface Persistablepublic void decode(java.nio.ByteBuffer buffer)
PersistableByteBufferdecode in interface Persistablepublic void decode(java.io.InputStream inputStream)
            throws java.io.IOException
Persistabledecode in interface Persistablejava.io.IOException