@Namespace(value="torch::jit") @Properties(inherit=torch.class) public class WriteableTensorData extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
WriteableTensorData()
Default native constructor.
|
WriteableTensorData(long size)
Native array allocator.
|
WriteableTensorData(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BytePointer |
data() |
WriteableTensorData |
getPointer(long i) |
long |
nbytes() |
WriteableTensorData |
position(long position) |
long |
sizeInBytes() |
boolean |
storageHasDeleter() |
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 WriteableTensorData()
public WriteableTensorData(long size)
Pointer.position(long)
.public WriteableTensorData(Pointer p)
Pointer(Pointer)
.public WriteableTensorData position(long position)
public WriteableTensorData getPointer(long i)
getPointer
in class Pointer
@Cast(value="const char*") public BytePointer data()
Copyright © 2024. All rights reserved.