@Namespace(value="c10") @Properties(inherit=torch.class) public class MemoryReportingInfoBase extends DebugInfoBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
MemoryReportingInfoBase(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
memoryProfilingEnabled() |
void |
reportMemoryUsage(Pointer ptr,
long alloc_size,
long total_allocated,
long total_reserved,
Device device)
alloc_size corresponds to the size of the ptr.
|
void |
reportOutOfMemory(long alloc_size,
long total_allocated,
long total_reserved,
Device device) |
getPointer, positionaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic MemoryReportingInfoBase(Pointer p)
Pointer(Pointer).public void reportMemoryUsage(Pointer ptr, @Cast(value="int64_t") long alloc_size, @Cast(value="size_t") long total_allocated, @Cast(value="size_t") long total_reserved, @ByVal Device device)
public void reportOutOfMemory(@Cast(value="int64_t") long alloc_size, @Cast(value="size_t") long total_allocated, @Cast(value="size_t") long total_reserved, @ByVal Device device)
Copyright © 2024. All rights reserved.