public static class OpKernelContext.Params extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
kNeverForward |
static int |
kNoReservation |
Constructor and Description |
---|
Params()
Default native constructor.
|
Params(long size)
Native array allocator.
|
Params(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, 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 static final int kNeverForward
public static final int kNoReservation
public Params()
public Params(long size)
Pointer.position(long)
.public Params(Pointer p)
Pointer(Pointer)
.public OpKernelContext.Params position(long position)
public OpKernelContext.Params getPointer(long i)
getPointer
in class Pointer
public OpKernelContext.Params step_id(long setter)
public OpKernelContext.Params is_eager(boolean setter)
public OpKernel op_kernel()
public OpKernelContext.Params op_kernel(OpKernel setter)
public DeviceBase device()
public OpKernelContext.Params device(DeviceBase setter)
public PerOpGpuDevice eigen_gpu_device()
public OpKernelContext.Params eigen_gpu_device(PerOpGpuDevice setter)
public void ensure_eigen_gpu_device()
public OpKernelContext.Params track_allocations(boolean setter)
public OpKernelContext.Params log_memory(boolean setter)
public OpKernelContext.Params record_tensor_accesses(boolean setter)
@Const public AllocatorAttributes output_attr_array()
public OpKernelContext.Params output_attr_array(AllocatorAttributes setter)
public ResourceMgr resource_manager()
public OpKernelContext.Params resource_manager(ResourceMgr setter)
public ScopedStepContainer step_container()
public OpKernelContext.Params step_container(ScopedStepContainer setter)
public Rendezvous rendezvous()
public OpKernelContext.Params rendezvous(Rendezvous setter)
@Cast(value="const std::function<tensorflow::Status(const int64,const DeviceMgr*,Rendezvous**r)>*") public Pointer create_rendezvous()
public OpKernelContext.Params create_rendezvous(Pointer setter)
public CollectiveExecutor collective_executor()
public OpKernelContext.Params collective_executor(CollectiveExecutor setter)
public SessionState session_state()
public OpKernelContext.Params session_state(SessionState setter)
@StdString public BytePointer session_handle()
public OpKernelContext.Params session_handle(BytePointer setter)
@Const public SessionMetadata session_metadata()
public OpKernelContext.Params session_metadata(SessionMetadata setter)
public TensorStore tensor_store()
public OpKernelContext.Params tensor_store(TensorStore setter)
public CancellationManager cancellation_manager()
public OpKernelContext.Params cancellation_manager(CancellationManager setter)
@Const public TensorValueVector inputs()
public OpKernelContext.Params inputs(TensorValueVector setter)
public OpKernelContext.Params is_input_dead(boolean setter)
@Const public AllocatorAttributesVector input_alloc_attrs()
public OpKernelContext.Params input_alloc_attrs(AllocatorAttributesVector setter)
@Const public DeviceContextInlinedVector input_device_contexts()
public OpKernelContext.Params input_device_contexts(DeviceContextInlinedVector setter)
public DeviceContext op_device_context()
public OpKernelContext.Params op_device_context(DeviceContext setter)
@ByRef public FrameAndIter frame_iter()
public OpKernelContext.Params frame_iter(FrameAndIter setter)
public CallFrameInterface call_frame()
public OpKernelContext.Params call_frame(CallFrameInterface setter)
public FunctionLibraryRuntime function_library()
public OpKernelContext.Params function_library(FunctionLibraryRuntime setter)
public OpKernelContext.Params runner(Pointer setter)
public StepStatsCollectorInterface stats_collector()
public OpKernelContext.Params stats_collector(StepStatsCollectorInterface setter)
public GraphCollector graph_collector()
public OpKernelContext.Params graph_collector(GraphCollector setter)
public TensorSliceReaderCacheWrapper slice_reader_cache()
public OpKernelContext.Params slice_reader_cache(TensorSliceReaderCacheWrapper setter)
@MemberGetter public static int kNeverForward()
@MemberGetter public static int kNoReservation()
@Const public IntPointer forward_from_array()
public OpKernelContext.Params forward_from_array(IntPointer setter)
@MemberSetter public OpKernelContext.Params inc_num_deferred_ops_function(@ByVal tensorflow.Fn fn)
@MemberSetter public OpKernelContext.Params dec_num_deferred_ops_function(@ByVal tensorflow.Fn fn)
Copyright © 2022. All rights reserved.