@Name(value="c10::MaybeOwned<at::Tensor>") @NoOffset @Properties(inherit=torch.class) public class TensorMaybeOwned extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorMaybeOwned() |
TensorMaybeOwned(long size)
Native array allocator.
|
TensorMaybeOwned(Pointer p)
Pointer cast constructor.
|
TensorMaybeOwned(TensorMaybeOwned rhs) |
Modifier and Type | Method and Description |
---|---|
Tensor |
access() |
static TensorMaybeOwned |
borrowed(Tensor t) |
TensorMaybeOwned |
getPointer(long i) |
Tensor |
multiply() |
static TensorMaybeOwned |
owned(Tensor t) |
TensorMaybeOwned |
position(long position) |
TensorMaybeOwned |
put(TensorMaybeOwned rhs) |
boolean |
unsafeIsBorrowed() |
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 TensorMaybeOwned(Pointer p)
Pointer(Pointer)
.public TensorMaybeOwned(long size)
Pointer.position(long)
.public TensorMaybeOwned()
public TensorMaybeOwned(@Cast(value={"","c10::MaybeOwned<at::Tensor>&&"}) @StdMove TensorMaybeOwned rhs)
public TensorMaybeOwned position(long position)
public TensorMaybeOwned getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public TensorMaybeOwned put(@Cast(value={"","c10::MaybeOwned<at::Tensor>&&"}) @StdMove TensorMaybeOwned rhs)
@Cast(value={"","c10::MaybeOwned<at::Tensor>&&"}) @StdMove public static TensorMaybeOwned borrowed(@Const @ByRef Tensor t)
@NoException(value=true) @Cast(value={"","c10::MaybeOwned<at::Tensor>&&"}) @StdMove public static TensorMaybeOwned owned(@ByRef(value=true) Tensor t)
Copyright © 2024. All rights reserved.