| Package | Description |
|---|---|
| org.bytedeco.pytorch |
| Modifier and Type | Method and Description |
|---|---|
AwaitPtr |
AwaitPtr.getPointer(long i) |
AwaitPtr |
AwaitPtr.position(long position) |
AwaitPtr |
AwaitPtr.put(AwaitPtr rhs) |
static AwaitPtr |
AwaitPtr.reclaim_copy(Await owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr
representing a new reference, i.e.
|
static AwaitPtr |
AwaitPtr.reclaim(Await owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr that takes
over ownership.
|
AwaitPtr |
IValue.toAwait() |
static AwaitPtr |
AwaitPtr.unsafe_adapt_non_heap_allocated(Await 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 AwaitPtr |
AwaitPtr.unsafe_reclaim_from_nonowning(Await raw_ptr)
Turn a **non-owning raw pointer** to an intrusive_ptr.
|
static AwaitPtr |
AwaitPtr.unsafe_steal_from_new(Await 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 |
|---|---|
AwaitPtr |
AwaitPtr.put(AwaitPtr rhs) |
void |
AwaitPtr.swap(AwaitPtr rhs) |
| Constructor and Description |
|---|
AwaitPtr(AwaitPtr rhs) |
IValue(AwaitPtr v) |
Copyright © 2024. All rights reserved.