@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class TensorHandle extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorHandle(OutputGraphNode symbolic_tensor,
int dtype) |
TensorHandle(Pointer p)
Pointer cast constructor.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TensorHandle(Pointer p)
Pointer(Pointer)
.public TensorHandle(@ByVal OutputGraphNode symbolic_tensor, @Cast(value="tensorflow::DataType") int dtype)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, Device d, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, Device d, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, Device d, Device op_device, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateLocalHandle(@Const @ByRef Tensor t, Device d, Device op_device, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateAsyncLocalHandle(Device d, Device op_device, Device resource_device, @Cast(value="tensorflow::DataType") int dtype, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateAsyncLocalHandle(Device d, Device op_device, Device resource_device, @Cast(value="tensorflow::DataType") int dtype, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateRemoteHandle(@Cast(value="tensorflow::int64") long op_id, int output_num, @Const @ByRef TensorShape shape, EagerClient eager_client, @Cast(value="tensorflow::uint64") long context_id, @Cast(value="tensorflow::DataType") int dtype, Device d, Device resource_device, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateRemoteHandle(@Cast(value="tensorflow::int64") long op_id, int output_num, @Const @ByRef TensorShape shape, EagerClient eager_client, @Cast(value="tensorflow::uint64") long context_id, @Cast(value="tensorflow::DataType") int dtype, Device d, Device resource_device, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateRemoteHandle(@tensorflow.MoveUniquePtr RemoteTensorHandleData t, @Cast(value="tensorflow::DataType") int dtype, Device d, Device resource_device, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateRemoteHandle(@tensorflow.MoveUniquePtr RemoteTensorHandleData t, @Cast(value="tensorflow::DataType") int dtype, Device d, Device resource_device, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateUnshapedRemoteHandle(@Cast(value="tensorflow::int64") long op_id, int output_num, EagerClient eager_client, @Cast(value="tensorflow::uint64") long context_id, @Cast(value="tensorflow::DataType") int dtype, Device device, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateUnshapedRemoteHandle(@Cast(value="tensorflow::int64") long op_id, int output_num, EagerClient eager_client, @Cast(value="tensorflow::uint64") long context_id, @Cast(value="tensorflow::DataType") int dtype, Device device, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public static Status CreateUnshapedRemoteHandle(@tensorflow.MoveUniquePtr UnshapedRemoteTensorHandleData t, @Cast(value="tensorflow::DataType") int dtype, Device device, EagerContext ctx, @Cast(value="tensorflow::TensorHandle**") PointerPointer h)
@ByVal public static Status CreateUnshapedRemoteHandle(@tensorflow.MoveUniquePtr UnshapedRemoteTensorHandleData t, @Cast(value="tensorflow::DataType") int dtype, Device device, EagerContext ctx, @ByPtrPtr TensorHandle h)
@ByVal public Status Tensor(@Cast(value="const tensorflow::Tensor**") PointerPointer t)
@ByVal public Status TensorValue(TensorValue t)
public Device device()
public Device op_device()
public Device resource_device()
public Device DeviceOrHostCPU(EagerContext ctx)
@ByVal public Status Shape(TensorShape shape)
@ByVal public Status NumDims(IntPointer num_dims)
@ByVal public Status Dim(int dim_index, @Cast(value="tensorflow::int64*") LongPointer dim)
@ByVal public Status Dim(int dim_index, @Cast(value="tensorflow::int64*") LongBuffer dim)
@ByVal public Status NumElements(@Cast(value="tensorflow::int64*") LongPointer num_elements)
@ByVal public Status NumElements(@Cast(value="tensorflow::int64*") LongBuffer num_elements)
@ByVal public Status NumElements(@Cast(value="tensorflow::int64*") long... num_elements)
@ByVal public Status AddUnshapedRemoteMirror(@tensorflow.MoveUniquePtr UnshapedRemoteTensorHandleData t, Device d)
@ByVal public Status AddRemoteMirror(@tensorflow.MoveUniquePtr RemoteTensorHandleData t, Device d)
@ByVal public Status RemoteAddress(Device d, @Cast(value="tensorflow::int64*") LongPointer op_id, IntPointer output_num)
@ByVal public Status RemoteAddress(Device d, @Cast(value="tensorflow::int64*") LongBuffer op_id, IntBuffer output_num)
@ByVal public Status RemoteAddress(Device d, @Cast(value="tensorflow::int64*") long[] op_id, int... output_num)
public void SetRemoteOpIdAndOutputNumToLocalTensorHandle(@Cast(value="const tensorflow::int64") long op_id, int output_num)
@ByVal public Status CopyToDevice(EagerContext ctx, Device dstd, Tensor output)
public EagerContext Context()
@MemberGetter @Cast(value="const tensorflow::DataType") public int dtype()
public OutputGraphNode getSymbolicTensor()
@StdString public BytePointer DebugString()
@ByVal public Status GetResourceHandleDtypesAndShapes(@StdVector DtypeAndPartialTensorShape result)
Copyright © 2022. All rights reserved.