public class JavaStatsInitializationReport extends Object implements StatsInitializationReport
StatsInitializationReport, mainly used for
Java 7 compatibility| Constructor and Description |
|---|
JavaStatsInitializationReport() |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] decode) |
void |
decode(ByteBuffer buffer) |
void |
decode(InputStream inputStream) |
byte[] |
encode() |
void |
encode(ByteBuffer buffer) |
void |
encode(OutputStream outputStream) |
int |
encodingLengthBytes() |
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 information
|
void |
reportSoftwareInfo(String arch,
String osName,
String jvmName,
String jvmVersion,
String jvmSpecVersion,
String nd4jBackendClass,
String nd4jDataTypeName,
String hostname,
String jvmUid,
Map<String,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(String sessionID, String typeID, String workerID, long timeStamp)
reportIDs in interface StatsInitializationReportpublic void reportSoftwareInfo(String arch, String osName, String jvmName, String jvmVersion, String jvmSpecVersion, String nd4jBackendClass, String nd4jDataTypeName, String hostname, String jvmUid, Map<String,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,
String[] deviceDescription,
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(String modelClassName, String modelConfigJson, 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()
encodingLengthBytes in interface Persistablepublic byte[] encode()
encode in interface Persistablepublic void encode(ByteBuffer buffer)
encode in interface Persistablepublic void encode(OutputStream outputStream) throws IOException
encode in interface PersistableIOExceptionpublic void decode(byte[] decode)
decode in interface Persistablepublic void decode(ByteBuffer buffer)
decode in interface Persistablepublic void decode(InputStream inputStream) throws IOException
decode in interface PersistableIOExceptionCopyright © 2019. All rights reserved.