Package org.nd4j.linalg.api.memory
Class AllocationsTracker
- java.lang.Object
-
- org.nd4j.linalg.api.memory.AllocationsTracker
-
public class AllocationsTracker extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAllocationsTracker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbytesOnDevice(Integer deviceId)longbytesOnDevice(AllocationKind kind, Integer deviceId)static AllocationsTrackergetInstance()voidmarkAllocated(AllocationKind kind, Integer deviceId, long bytes)voidmarkReleased(AllocationKind kind, Integer deviceId, long bytes)protected DeviceAllocationsTrackertrackerForDevice(Integer deviceId)
-
-
-
Method Detail
-
getInstance
public static AllocationsTracker getInstance()
-
trackerForDevice
protected DeviceAllocationsTracker trackerForDevice(Integer deviceId)
-
markAllocated
public void markAllocated(AllocationKind kind, Integer deviceId, long bytes)
-
markReleased
public void markReleased(AllocationKind kind, Integer deviceId, long bytes)
-
bytesOnDevice
public long bytesOnDevice(Integer deviceId)
-
bytesOnDevice
public long bytesOnDevice(AllocationKind kind, Integer deviceId)
-
-