@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class StorageImpl extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
StorageImpl.use_byte_size_t |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StorageImpl(Pointer p)
Pointer cast constructor.
|
StorageImpl(StorageImpl.use_byte_size_t arg0,
SymInt size_bytes,
Allocator allocator,
boolean resizable) |
StorageImpl(StorageImpl.use_byte_size_t arg0,
SymInt size_bytes,
DataPtr data_ptr,
Allocator allocator,
boolean resizable) |
Modifier and Type | Method and Description |
---|---|
Allocator |
allocator() |
DataPtr |
data_ptr() |
Pointer |
data() |
torch.DeviceType |
device_type() |
Device |
device() |
DataPtr |
mutable_data_ptr() |
Pointer |
mutable_data() |
long |
nbytes() |
boolean |
received_cuda() |
void |
release_resources() |
void |
reset() |
boolean |
resizable() |
void |
set_allocator(Allocator allocator) |
void |
set_data_ptr_noswap(DataPtr data_ptr) |
DataPtr |
set_data_ptr(DataPtr data_ptr) |
void |
set_nbytes(long size_bytes) |
void |
set_nbytes(SymInt size_bytes) |
void |
set_received_cuda(boolean received_cuda) |
void |
set_resizable(boolean resizable) |
SymInt |
sym_nbytes() |
void |
UniqueStorageShareExternalPointer(DataPtr data_ptr,
long size_bytes)
Can only be called when use_count is 1
|
void |
UniqueStorageShareExternalPointer(Pointer src,
long size_bytes) |
void |
UniqueStorageShareExternalPointer(Pointer src,
long size_bytes,
PointerConsumer d)
Can only be called when use_count is 1
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public StorageImpl(Pointer p)
Pointer(Pointer)
.public StorageImpl(@ByVal StorageImpl.use_byte_size_t arg0, @ByVal SymInt size_bytes, @Cast(value={"","c10::DataPtr&&"}) @StdMove DataPtr data_ptr, Allocator allocator, @Cast(value="bool") boolean resizable)
public void reset()
public void release_resources()
@Cast(value={"","c10::DataPtr&&"}) @StdMove public DataPtr set_data_ptr(@Cast(value={"","c10::DataPtr&&"}) @StdMove DataPtr data_ptr)
public void set_data_ptr_noswap(@Cast(value={"","c10::DataPtr&&"}) @StdMove DataPtr data_ptr)
public Pointer mutable_data()
@ByVal public torch.DeviceType device_type()
public Allocator allocator()
public void set_allocator(Allocator allocator)
public void UniqueStorageShareExternalPointer(Pointer src, @Cast(value="size_t") long size_bytes, PointerConsumer d)
public void UniqueStorageShareExternalPointer(Pointer src, @Cast(value="size_t") long size_bytes)
public void UniqueStorageShareExternalPointer(@Cast(value={"","c10::DataPtr&&"}) @StdMove DataPtr data_ptr, @Cast(value="size_t") long size_bytes)
Copyright © 2024. All rights reserved.