public class NetworkMemoryReport extends MemoryReport
MultiLayerNetwork or ComputationGraph,
composed of multiple layers and/or vertices.CACHE_MODE_ALL_ZEROS| Constructor and Description |
|---|
NetworkMemoryReport(Map<String,MemoryReport> layerAndVertexReports,
Class<?> modelClass,
String modelName,
InputType... networkInputTypes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMemoryBytes(MemoryType memoryType,
int minibatchSize,
MemoryUseMode memoryUseMode,
CacheMode cacheMode,
org.nd4j.linalg.api.buffer.DataBuffer.Type dataType)
Get the memory estimate (in bytes) for the specified type of memory
|
String |
getName()
Name of the object that the memory report was generated for
|
Class<?> |
getReportClass() |
long |
getTotalMemoryBytes(int minibatchSize,
MemoryUseMode memoryUseMode,
CacheMode cacheMode,
org.nd4j.linalg.api.buffer.DataBuffer.Type dataType)
Get the total memory use in bytes for the given configuration
|
String |
toString() |
cacheModeMapFor, fromJson, fromYaml, getBytesPerElement, getMemoryBytes, getTotalMemoryBytes, toJson, toYamlpublic Class<?> getReportClass()
getReportClass in class MemoryReportpublic String getName()
MemoryReportgetName in class MemoryReportpublic long getTotalMemoryBytes(int minibatchSize,
@NonNull
MemoryUseMode memoryUseMode,
@NonNull
CacheMode cacheMode,
@NonNull
org.nd4j.linalg.api.buffer.DataBuffer.Type dataType)
MemoryReportgetTotalMemoryBytes in class MemoryReportminibatchSize - Mini batch size to estimate the memory formemoryUseMode - The memory use mode (training or inference)cacheMode - The CacheMode to usedataType - Nd4j datatypepublic long getMemoryBytes(MemoryType memoryType, int minibatchSize, MemoryUseMode memoryUseMode, CacheMode cacheMode, org.nd4j.linalg.api.buffer.DataBuffer.Type dataType)
MemoryReportgetMemoryBytes in class MemoryReportmemoryType - Type of memory to get the estimate for invitesminibatchSize - Mini batch size to estimate the memory formemoryUseMode - The memory use mode (training or inference)cacheMode - The CacheMode to usedataType - Nd4j datatypepublic String toString()
toString in class MemoryReportCopyright © 2018. All rights reserved.