Package | Description |
---|---|
org.bytedeco.pytorch |
Modifier and Type | Method and Description |
---|---|
TensorImplPtr |
PyInterpreterVTable.detach(TensorImpl self) |
TensorImplPtr |
GeneratorImpl.get_state() |
TensorImplPtr |
CPUGeneratorImpl.get_state() |
TensorImplPtr |
TensorBase.getIntrusivePtr() |
TensorImplPtr |
TensorImplPtr.getPointer(long i) |
TensorImplPtr |
TensorImplPtr.position(long position) |
TensorImplPtr |
TensorImplPtr.put(TensorImplPtr rhs) |
static TensorImplPtr |
TensorImplPtr.reclaim_copy(TensorImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr
representing a new reference, i.e.
|
static TensorImplPtr |
TensorImplPtr.reclaim(TensorImpl owning_ptr)
Takes an owning pointer to TTarget* and creates an intrusive_ptr that takes
over ownership.
|
TensorImplPtr |
TensorImpl.shallow_copy_and_detach(VariableVersion version_counter,
boolean allow_tensor_metadata_change) |
static TensorImplPtr |
TensorImplPtr.unsafe_adapt_non_heap_allocated(TensorImpl 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 TensorImplPtr |
TensorImplPtr.unsafe_reclaim_from_nonowning(TensorImpl raw_ptr)
Turn a **non-owning raw pointer** to an intrusive_ptr.
|
static TensorImplPtr |
TensorImplPtr.unsafe_steal_from_new(TensorImpl raw_ptr)
Turn a new instance of TTarget (e.g., literally allocated
using new TTarget(...) into an intrusive_ptr.
|
TensorImplPtr |
TensorBase.unsafeReleaseIntrusivePtr() |
Modifier and Type | Method and Description |
---|---|
TensorImplPtr |
TensorImplPtr.put(TensorImplPtr rhs) |
void |
TensorImpl.shallow_copy_from(TensorImplPtr impl)
Shallow-copies data from another TensorImpl into this TensorImpl.
|
void |
TensorImplPtr.swap(TensorImplPtr rhs) |
static Tensor |
Tensor.wrap_tensor_impl(TensorImplPtr tensor_impl) |
static TensorBase |
TensorBase.wrap_tensor_impl(TensorImplPtr tensor_impl) |
Constructor and Description |
---|
Tensor(TensorImplPtr tensor_impl) |
TensorBase(TensorImplPtr tensor_impl) |
TensorImplPtr(TensorImplPtr rhs) |
Copyright © 2024. All rights reserved.