Class SbeStatsInitializationReport
- java.lang.Object
-
- org.deeplearning4j.ui.model.stats.impl.SbeStatsInitializationReport
-
- All Implemented Interfaces:
Serializable,Persistable,StatsInitializationReport,AgronaPersistable
public class SbeStatsInitializationReport extends Object implements StatsInitializationReport, AgronaPersistable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SbeStatsInitializationReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(byte[] decode)voiddecode(InputStream inputStream)voiddecode(ByteBuffer buffer)voiddecode(org.agrona.DirectBuffer buffer)byte[]encode()voidencode(OutputStream outputStream)voidencode(ByteBuffer buffer)voidencode(org.agrona.MutableDirectBuffer buffer)intencodingLengthBytes()StringgetSessionID()longgetTimeStamp()StringgetTypeID()StringgetWorkerID()booleanhasHardwareInfo()booleanhasModelInfo()booleanhasSoftwareInfo()voidreportHardwareInfo(int jvmAvailableProcessors, int numDevices, long jvmMaxMemory, long offHeapMaxMemory, long[] deviceTotalMemory, String[] deviceDescription, String hardwareUID)voidreportIDs(String sessionID, String typeID, String workerID, long timeStamp)voidreportModelInfo(String modelClassName, String modelConfigJson, String[] modelParamNames, int numLayers, long numParams)Report the model informationvoidreportSoftwareInfo(String arch, String osName, String jvmName, String jvmVersion, String jvmSpecVersion, String nd4jBackendClass, String nd4jDataTypeName, String hostname, String jvmUid, Map<String,String> swEnvironmentInfo)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.deeplearning4j.ui.model.stats.api.StatsInitializationReport
getHwDeviceDescription, getHwDeviceTotalMemory, getHwHardwareUID, getHwJvmAvailableProcessors, getHwJvmMaxMemory, getHwNumDevices, getHwOffHeapMaxMemory, getModelClassName, getModelConfigJson, getModelNumLayers, getModelNumParams, getModelParamNames, getSwArch, getSwEnvironmentInfo, getSwHostName, getSwJvmName, getSwJvmSpecVersion, getSwJvmUID, getSwJvmVersion, getSwNd4jBackendClass, getSwNd4jDataTypeName, getSwOsName
-
-
-
-
Method Detail
-
reportIDs
public void reportIDs(String sessionID, String typeID, String workerID, long timeStamp)
- Specified by:
reportIDsin interfaceStatsInitializationReport
-
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:
reportSoftwareInfoin interfaceStatsInitializationReport- Parameters:
arch- 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()
-
reportHardwareInfo
public void reportHardwareInfo(int jvmAvailableProcessors, int numDevices, long jvmMaxMemory, long offHeapMaxMemory, long[] deviceTotalMemory, String[] deviceDescription, String hardwareUID)- Specified by:
reportHardwareInfoin interfaceStatsInitializationReport- Parameters:
jvmAvailableProcessors- 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 JVMs
-
reportModelInfo
public void reportModelInfo(String modelClassName, String modelConfigJson, String[] modelParamNames, int numLayers, long numParams)
Description copied from interface:StatsInitializationReportReport the model information- Specified by:
reportModelInfoin interfaceStatsInitializationReport- Parameters:
modelClassName- Model class name: i.e., type of modelmodelConfigJson- Model configuration, as JSON stringnumLayers- Number of layers in the modelnumParams- Number of parameters in the model
-
hasSoftwareInfo
public boolean hasSoftwareInfo()
- Specified by:
hasSoftwareInfoin interfaceStatsInitializationReport
-
hasHardwareInfo
public boolean hasHardwareInfo()
- Specified by:
hasHardwareInfoin interfaceStatsInitializationReport
-
hasModelInfo
public boolean hasModelInfo()
- Specified by:
hasModelInfoin interfaceStatsInitializationReport
-
getSessionID
public String getSessionID()
- Specified by:
getSessionIDin interfacePersistable
-
getTypeID
public String getTypeID()
- Specified by:
getTypeIDin interfacePersistable
-
getWorkerID
public String getWorkerID()
- Specified by:
getWorkerIDin interfacePersistable
-
getTimeStamp
public long getTimeStamp()
- Specified by:
getTimeStampin interfacePersistable
-
encodingLengthBytes
public int encodingLengthBytes()
- Specified by:
encodingLengthBytesin interfacePersistable
-
encode
public byte[] encode()
- Specified by:
encodein interfacePersistable
-
encode
public void encode(ByteBuffer buffer)
- Specified by:
encodein interfacePersistable
-
encode
public void encode(org.agrona.MutableDirectBuffer buffer)
- Specified by:
encodein interfaceAgronaPersistable
-
encode
public void encode(OutputStream outputStream) throws IOException
- Specified by:
encodein interfacePersistable- Throws:
IOException
-
decode
public void decode(byte[] decode)
- Specified by:
decodein interfacePersistable
-
decode
public void decode(ByteBuffer buffer)
- Specified by:
decodein interfacePersistable
-
decode
public void decode(org.agrona.DirectBuffer buffer)
- Specified by:
decodein interfaceAgronaPersistable
-
decode
public void decode(InputStream inputStream) throws IOException
- Specified by:
decodein interfacePersistable- Throws:
IOException
-
-