public abstract static class tensorflow.AbstractTF_Tensor extends Pointer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
tensorflow.AbstractTF_Tensor.DeleteDeallocator |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
protected static tensorflow.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 tensorflow.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 tensorflow.TF_Tensor |
newTensor(int dtype,
long[] dims,
Pointer data)
Calls TF_NewTensor(), and registers a deallocator.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeroprotected static tensorflow.Deallocator_Pointer_long_Pointer dummyDeallocator
protected Pointer pointer
public AbstractTF_Tensor(Pointer p)
public static tensorflow.TF_Tensor newTensor(int dtype, long[] dims, Pointer data)
public static tensorflow.TF_Tensor allocateTensor(int dtype, long[] dims, long length)
public void delete()
Copyright © 2019. All rights reserved.