| Package | Description |
|---|---|
| org.bytedeco.pytorch |
| Modifier and Type | Method and Description |
|---|---|
static TuplePtr |
Tuple.create(IValue e1) |
static TuplePtr |
Tuple.create(IValueArrayRef elements_) |
static TuplePtr |
Tuple.create(IValue e1,
IValue e2) |
static TuplePtr |
Tuple.create(IValue e1,
IValue e2,
IValue e3) |
static TuplePtr |
Tuple.create(IValueVector elements_) |
static TuplePtr |
Tuple.create(TupleElements elements_) |
static TuplePtr |
Tuple.createNamed(IValueVector elements_,
Type.TypePtr type_) |
static TuplePtr |
Tuple.createNamed(TupleElements elements_,
TupleType type_) |
TuplePtr |
TuplePtr.getPointer(long i) |
TuplePtr |
TuplePtr.position(long position) |
TuplePtr |
TuplePtr.put(TuplePtr rhs) |
static TuplePtr |
TuplePtr.reclaim_copy(Tuple owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr
representing a new reference, i.e.
|
static TuplePtr |
TuplePtr.reclaim(Tuple owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr that takes
over ownership.
|
TuplePtr |
IValue.toTuple() |
static TuplePtr |
TuplePtr.unsafe_adapt_non_heap_allocated(Tuple 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 TuplePtr |
TuplePtr.unsafe_reclaim_from_nonowning(Tuple raw_ptr)
Turn a **non-owning raw pointer** to an intrusive_ptr.
|
static TuplePtr |
TuplePtr.unsafe_steal_from_new(Tuple 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 |
|---|---|
TuplePtr |
TuplePtr.put(TuplePtr rhs) |
void |
TuplePtr.swap(TuplePtr rhs) |
| Constructor and Description |
|---|
IValue(TuplePtr v) |
TuplePtr(TuplePtr rhs) |
Copyright © 2024. All rights reserved.