@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class TensorGeometry extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorGeometry() |
TensorGeometry(long size)
Native array allocator.
|
TensorGeometry(Pointer p)
Pointer cast constructor.
|
TensorGeometry(SymIntArrayRef sizes) |
TensorGeometry(TensorBase t) |
Modifier and Type | Method and Description |
---|---|
long |
dim() |
TensorGeometry |
getPointer(long i) |
boolean |
is_contiguous() |
SymIntVector |
mutable_sizes() |
SymInt |
mutable_storage_offset() |
SymIntVector |
mutable_strides() |
long |
numel() |
TensorGeometry |
position(long position) |
void |
recompute() |
long |
size(long dim) |
LongArrayRef |
sizes() |
long |
storage_offset() |
long |
stride(long dim) |
LongArrayRef |
strides() |
SymInt |
sym_numel() |
SymInt |
sym_size(long dim) |
SymIntArrayRef |
sym_sizes() |
SymInt |
sym_storage_offset() |
SymInt |
sym_stride(long dim) |
SymIntArrayRef |
sym_strides() |
TensorGeometry |
transpose(long dim0,
long dim1) |
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 TensorGeometry(Pointer p)
Pointer(Pointer)
.public TensorGeometry(long size)
Pointer.position(long)
.public TensorGeometry()
public TensorGeometry(@ByVal SymIntArrayRef sizes)
public TensorGeometry(@Const @ByRef TensorBase t)
public TensorGeometry position(long position)
public TensorGeometry getPointer(long i)
getPointer
in class Pointer
@ByVal public LongArrayRef sizes()
@ByVal public LongArrayRef strides()
@ByVal public SymIntArrayRef sym_sizes()
@ByVal public SymIntArrayRef sym_strides()
@ByVal public TensorGeometry transpose(@Cast(value="int64_t") long dim0, @Cast(value="int64_t") long dim1)
@ByRef public SymIntVector mutable_sizes()
@ByRef public SymIntVector mutable_strides()
public void recompute()
Copyright © 2024. All rights reserved.