@Namespace(value="at::native") @Properties(inherit=torch_cuda.class) public class TensorDescriptor extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorDescriptor() |
TensorDescriptor(long size)
Native array allocator.
|
TensorDescriptor(Pointer p)
Pointer cast constructor.
|
TensorDescriptor(Tensor t) |
TensorDescriptor(Tensor t,
long pad) |
Modifier and Type | Method and Description |
---|---|
TensorDescriptor |
getPointer(long i) |
TensorDescriptor |
position(long position) |
void |
print() |
void |
set(int dataType,
LongArrayRef sizes,
LongArrayRef strides) |
void |
set(int dataType,
LongArrayRef sizes,
LongArrayRef strides,
long pad) |
void |
set(Tensor t) |
void |
set(Tensor t,
long pad) |
void |
set(Tensor t,
torch.MemoryFormat memory_format) |
void |
set(Tensor t,
torch.MemoryFormat memory_format,
long pad) |
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 TensorDescriptor(Pointer p)
Pointer(Pointer)
.public TensorDescriptor(long size)
Pointer.position(long)
.public TensorDescriptor()
public TensorDescriptor position(long position)
public TensorDescriptor getPointer(long i)
getPointer
in class Pointer
public void set(@Const @ByRef Tensor t, @ByVal torch.MemoryFormat memory_format, @Cast(value="size_t") long pad)
public void set(@Const @ByRef Tensor t, @ByVal torch.MemoryFormat memory_format)
public void set(@Cast(value="cudnnDataType_t") int dataType, @ByVal LongArrayRef sizes, @ByVal LongArrayRef strides, @Cast(value="size_t") long pad)
public void set(@Cast(value="cudnnDataType_t") int dataType, @ByVal LongArrayRef sizes, @ByVal LongArrayRef strides)
public void print()
Copyright © 2024. All rights reserved.