@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class Storage extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Storage.use_byte_size_t |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Storage() |
Storage(long size)
Native array allocator.
|
Storage(Pointer p)
Pointer cast constructor.
|
Storage(Storage.use_byte_size_t arg0,
long size_bytes,
DataPtr data_ptr) |
Storage(Storage.use_byte_size_t arg0,
long size_bytes,
DataPtr data_ptr,
Allocator allocator,
boolean resizable) |
Storage(Storage.use_byte_size_t arg0,
SymInt size_bytes) |
Storage(Storage.use_byte_size_t arg0,
SymInt size_bytes,
Allocator allocator,
boolean resizable) |
Storage(StorageImplPtr ptr) |
address, 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, zero
public Storage(Pointer p)
Pointer(Pointer)
.public Storage(long size)
Pointer.position(long)
.public Storage()
public Storage(@ByVal StorageImplPtr ptr)
public Storage(@ByVal Storage.use_byte_size_t arg0, @ByVal SymInt size_bytes, Allocator allocator, @Cast(value="bool") boolean resizable)
public Storage(@ByVal Storage.use_byte_size_t arg0, @ByVal SymInt size_bytes)
public Storage(@ByVal Storage.use_byte_size_t arg0, @Cast(value="size_t") long size_bytes, @Cast(value={"","c10::DataPtr&&"}) @StdMove DataPtr data_ptr, Allocator allocator, @Cast(value="bool") boolean resizable)
public Storage getPointer(long i)
getPointer
in class Pointer
@Cast(value={"","c10::Storage&&"}) @StdMove public static Storage create_legacy(@ByVal Device device)
public void reset_legacy()
public Pointer mutable_data()
@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 torch.DeviceType device_type()
public Allocator allocator()
public StorageImpl unsafeReleaseStorageImpl()
@NoException(value=true) public StorageImpl unsafeGetStorageImpl()
@ByVal public WeakStorage getWeakStorageImpl()
@Cast(value="bool") public boolean is_alias_of(@Cast(value={"","c10::Storage&&"}) @StdMove Storage other)
public void UniqueStorageShareExternalPointer(Pointer src, @Cast(value="size_t") long _capacity, PointerConsumer d)
public void UniqueStorageShareExternalPointer(Pointer src, @Cast(value="size_t") long _capacity)
Copyright © 2024. All rights reserved.