Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.functions | |
org.bytedeco.pytorch.global |
Modifier and Type | Method and Description |
---|---|
StorageImplPtr |
StorageImplPtr.getPointer(long i) |
StorageImplPtr |
WeakStorage.lock() |
StorageImplPtr |
StorageImplPtr.position(long position) |
StorageImplPtr |
StorageImplPtr.put(StorageImplPtr rhs) |
static StorageImplPtr |
StorageImplPtr.reclaim_copy(StorageImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr
representing a new reference, i.e.
|
static StorageImplPtr |
StorageImplPtr.reclaim(StorageImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr that takes
over ownership.
|
static StorageImplPtr |
StorageImplPtr.unsafe_adapt_non_heap_allocated(StorageImpl raw_ptr,
long expected_decrefs)
Turn an instance of TTarget that should not be reference counted
(e.g., allocated into an arena with placement new) into an
intrusive_ptr.
|
static StorageImplPtr |
StorageImplPtr.unsafe_reclaim_from_nonowning(StorageImpl raw_ptr)
Turn a **non-owning raw pointer** to an intrusive_ptr.
|
static StorageImplPtr |
StorageImplPtr.unsafe_steal_from_new(StorageImpl raw_ptr)
Turn a new instance of TTarget (e.g., literally allocated
using new TTarget(...) into an intrusive_ptr.
|
Modifier and Type | Method and Description |
---|---|
WeakStorage |
WeakStorage.put(StorageImplPtr rhs) |
StorageImplPtr |
StorageImplPtr.put(StorageImplPtr rhs) |
void |
StorageImplPtr.swap(StorageImplPtr rhs) |
Constructor and Description |
---|
Storage(StorageImplPtr ptr) |
StorageImplPtr(StorageImplPtr rhs) |
WeakStorage(StorageImplPtr ptr) |
Modifier and Type | Method and Description |
---|---|
StorageImplPtr |
StorageImplCreateHelper.call(StorageImpl.use_byte_size_t arg0,
SymInt size_bytes,
Allocator allocator,
boolean resizable) |
Modifier and Type | Method and Description |
---|---|
static StorageImplPtr |
torch.GetStorageImplCreate(byte t) |
static StorageImplPtr |
torch.GetStorageImplCreate(torch.DeviceType t) |
static StorageImplPtr |
torch.new_shm_fd_storage(long size)
Create a new shared memory storage impl managed by file descriptor
|
Modifier and Type | Method and Description |
---|---|
static void |
torch.SetStorageImplCreate(byte t,
StorageImplPtr fptr) |
static void |
torch.SetStorageImplCreate(torch.DeviceType t,
StorageImplPtr fptr) |
Copyright © 2024. All rights reserved.