@Namespace(value="tensorflow") @Properties(inherit=tensorflow.class) public class TensorCApi extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorCApi()
Default native constructor.
|
TensorCApi(long size)
Native array allocator.
|
TensorCApi(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static TensorBuffer |
Buffer(Tensor tensor) |
TensorCApi |
getPointer(long i) |
static Tensor |
MakeTensor(int type,
TensorShape shape,
TensorBuffer buf) |
TensorCApi |
position(long position) |
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 TensorCApi()
public TensorCApi(long size)
Pointer.position(long)
.public TensorCApi(Pointer p)
Pointer(Pointer)
.public TensorCApi position(long position)
public TensorCApi getPointer(long i)
getPointer
in class Pointer
public static TensorBuffer Buffer(@Const @ByRef Tensor tensor)
@ByVal public static Tensor MakeTensor(@Cast(value="TF_DataType") int type, @Const @ByRef TensorShape shape, TensorBuffer buf)
Copyright © 2022. All rights reserved.