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 void
decode(byte[] decode)
void
decode(InputStream inputStream)
void
decode(ByteBuffer buffer)
void
decode(org.agrona.DirectBuffer buffer)
byte[]
encode()
void
encode(OutputStream outputStream)
void
encode(ByteBuffer buffer)
void
encode(org.agrona.MutableDirectBuffer buffer)
int
encodingLengthBytes()
String
getSessionID()
long
getTimeStamp()
String
getTypeID()
String
getWorkerID()
boolean
hasHardwareInfo()
boolean
hasModelInfo()
boolean
hasSoftwareInfo()
void
reportHardwareInfo(int jvmAvailableProcessors, int numDevices, long jvmMaxMemory, long offHeapMaxMemory, long[] deviceTotalMemory, String[] deviceDescription, String hardwareUID)
void
reportIDs(String sessionID, String typeID, String workerID, long timeStamp)
void
reportModelInfo(String modelClassName, String modelConfigJson, String[] modelParamNames, int numLayers, long numParams)
Report the model informationvoid
reportSoftwareInfo(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:
reportIDs
in 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:
reportSoftwareInfo
in 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:
reportHardwareInfo
in 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:StatsInitializationReport
Report the model information- Specified by:
reportModelInfo
in 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:
hasSoftwareInfo
in interfaceStatsInitializationReport
-
hasHardwareInfo
public boolean hasHardwareInfo()
- Specified by:
hasHardwareInfo
in interfaceStatsInitializationReport
-
hasModelInfo
public boolean hasModelInfo()
- Specified by:
hasModelInfo
in interfaceStatsInitializationReport
-
getSessionID
public String getSessionID()
- Specified by:
getSessionID
in interfacePersistable
-
getTypeID
public String getTypeID()
- Specified by:
getTypeID
in interfacePersistable
-
getWorkerID
public String getWorkerID()
- Specified by:
getWorkerID
in interfacePersistable
-
getTimeStamp
public long getTimeStamp()
- Specified by:
getTimeStamp
in interfacePersistable
-
encodingLengthBytes
public int encodingLengthBytes()
- Specified by:
encodingLengthBytes
in interfacePersistable
-
encode
public byte[] encode()
- Specified by:
encode
in interfacePersistable
-
encode
public void encode(ByteBuffer buffer)
- Specified by:
encode
in interfacePersistable
-
encode
public void encode(org.agrona.MutableDirectBuffer buffer)
- Specified by:
encode
in interfaceAgronaPersistable
-
encode
public void encode(OutputStream outputStream) throws IOException
- Specified by:
encode
in interfacePersistable
- Throws:
IOException
-
decode
public void decode(byte[] decode)
- Specified by:
decode
in interfacePersistable
-
decode
public void decode(ByteBuffer buffer)
- Specified by:
decode
in interfacePersistable
-
decode
public void decode(org.agrona.DirectBuffer buffer)
- Specified by:
decode
in interfaceAgronaPersistable
-
decode
public void decode(InputStream inputStream) throws IOException
- Specified by:
decode
in interfacePersistable
- Throws:
IOException
-
-