@Properties(inherit=tensorflow.class) public abstract class AbstractTF_Tensor extends Pointer
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractTF_Tensor.DeleteDeallocator |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
protected static Deallocator_Pointer_long_Pointer |
dummyDeallocator
TensorFlow crashes if we don't pass it a deallocator, so...
|
protected Pointer |
pointer
A reference to prevent deallocation.
|
Constructor and Description |
---|
AbstractTF_Tensor(Pointer p) |
Modifier and Type | Method and Description |
---|---|
static TF_Tensor |
allocateTensor(int dtype,
long[] dims,
long length)
Calls TF_AllocateTensor(), and registers a deallocator.
|
void |
delete()
Calls the deallocator, if registered, otherwise has no effect.
|
static TF_Tensor |
newTensor(int dtype,
long[] dims,
Pointer data)
Calls TF_NewTensor(), and registers a deallocator.
|
TF_Tensor |
withDeallocator()
Registers a deallocator and returns this.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
protected static Deallocator_Pointer_long_Pointer dummyDeallocator
protected Pointer pointer
public AbstractTF_Tensor(Pointer p)
public static TF_Tensor newTensor(int dtype, long[] dims, Pointer data)
public static TF_Tensor allocateTensor(int dtype, long[] dims, long length)
public TF_Tensor withDeallocator()
public void delete()
Copyright © 2015–2022. All rights reserved.