@Namespace(value="tensorflow") @NoOffset public static class tensorflow.OpKernelContext extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.OpKernelContext.Params |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
OpKernelContext(Pointer p)
Pointer cast constructor.
|
OpKernelContext(tensorflow.OpKernelContext.Params params) |
OpKernelContext(tensorflow.OpKernelContext.Params params,
int noutputs) |
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, zeropublic OpKernelContext(Pointer p)
Pointer.Pointer(Pointer).public OpKernelContext(tensorflow.OpKernelContext.Params params)
public OpKernelContext(tensorflow.OpKernelContext.Params params, int noutputs)
public tensorflow.Env env()
@Const @ByRef public tensorflow.OpKernel op_kernel()
public int num_inputs()
@ByVal public tensorflow.Status input_dtype(@tensorflow.StringPiece BytePointer name, @Cast(value="tensorflow::DataType*") IntPointer dtype)
@ByVal public tensorflow.Status input_dtype(@tensorflow.StringPiece String name, @Cast(value="tensorflow::DataType*") IntPointer dtype)
public int num_outputs()
@Cast(value="tensorflow::DataType") public int expected_output_dtype(int index)
@Const @ByRef public tensorflow.Tensor input(int index)
@ByVal public tensorflow.Status input(@tensorflow.StringPiece BytePointer name, @Cast(value="const tensorflow::Tensor**") PointerPointer tensor)
@ByVal public tensorflow.Status input(@tensorflow.StringPiece BytePointer name, @Const @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status input(@tensorflow.StringPiece String name, @Const @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status input_list(@tensorflow.StringPiece BytePointer name, tensorflow.OpInputList list)
@ByVal public tensorflow.Status input_list(@tensorflow.StringPiece String name, tensorflow.OpInputList list)
@ByVal public tensorflow.Status input_ref_mutex(@tensorflow.StringPiece BytePointer name, @Cast(value="tensorflow::mutex**") PointerPointer out_mutex)
@ByVal public tensorflow.Status input_ref_mutex(@tensorflow.StringPiece BytePointer name, @Cast(value="tensorflow::mutex**") @ByPtrPtr Pointer out_mutex)
@ByVal public tensorflow.Status input_ref_mutex(@tensorflow.StringPiece String name, @Cast(value="tensorflow::mutex**") @ByPtrPtr Pointer out_mutex)
@ByVal public tensorflow.Tensor mutable_input(int index, @Cast(value="bool") boolean lock_held)
@ByVal public tensorflow.Status mutable_input(@tensorflow.StringPiece BytePointer name, tensorflow.Tensor tensor, @Cast(value="bool") boolean lock_held)
@ByVal public tensorflow.Status mutable_input(@tensorflow.StringPiece String name, tensorflow.Tensor tensor, @Cast(value="bool") boolean lock_held)
@ByVal public tensorflow.Status mutable_input_list(@tensorflow.StringPiece BytePointer name, tensorflow.OpMutableInputList list)
@ByVal public tensorflow.Status mutable_input_list(@tensorflow.StringPiece String name, tensorflow.OpMutableInputList list)
public void replace_ref_input(int index,
@Const @ByRef
tensorflow.Tensor tensor,
@Cast(value="bool")
boolean lock_held)
@ByVal public tensorflow.Status replace_ref_input(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.Tensor tensor, @Cast(value="bool") boolean lock_held)
@ByVal public tensorflow.Status replace_ref_input(@tensorflow.StringPiece String name, @Const @ByRef tensorflow.Tensor tensor, @Cast(value="bool") boolean lock_held)
public void delete_ref_input(int input_index,
@Cast(value="bool")
boolean lock_held)
@Cast(value="bool") public boolean ValidateInputsAreSameShape(tensorflow.OpKernel op)
public void forward_ref_input_to_ref_output(int input_index,
int output_index)
@Cast(value="bool") public boolean forward_input_to_output_with_shape(int input_index, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @Cast(value="tensorflow::Tensor**") PointerPointer output)
@Cast(value="bool") public boolean forward_input_to_output_with_shape(int input_index, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_to_output_with_shape(@tensorflow.StringPiece BytePointer input_name, @tensorflow.StringPiece BytePointer output_name, @Const @ByRef tensorflow.TensorShape output_shape, @Cast(value="tensorflow::Tensor**") PointerPointer output)
@ByVal public tensorflow.Status forward_input_to_output_with_shape(@tensorflow.StringPiece BytePointer input_name, @tensorflow.StringPiece BytePointer output_name, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_to_output_with_shape(@tensorflow.StringPiece String input_name, @tensorflow.StringPiece String output_name, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@UniquePtr public tensorflow.Tensor forward_input(int input_index, int output_index, @Cast(value="tensorflow::DataType") int output_dtype, @Const @ByRef tensorflow.TensorShape output_shape, @Cast(value="tensorflow::MemoryType") int output_memory_type, @Const @ByRef tensorflow.AllocatorAttributes output_attr)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@tensorflow.ArraySlice IntPointer candidate_input_indices, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @Cast(value="tensorflow::Tensor**") PointerPointer output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@tensorflow.ArraySlice IntPointer candidate_input_indices, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@tensorflow.ArraySlice IntBuffer candidate_input_indices, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@tensorflow.ArraySlice int[] candidate_input_indices, int output_index, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@ByVal @Cast(value="tensorflow::gtl::ArraySlice<tensorflow::StringPiece>*") tensorflow.StringPieceVector candidate_input_names, @tensorflow.StringPiece BytePointer output_name, @Const @ByRef tensorflow.TensorShape output_shape, @Cast(value="tensorflow::Tensor**") PointerPointer output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@ByVal @Cast(value="tensorflow::gtl::ArraySlice<tensorflow::StringPiece>*") tensorflow.StringPieceVector candidate_input_names, @tensorflow.StringPiece BytePointer output_name, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_or_allocate_output(@ByVal @Cast(value="tensorflow::gtl::ArraySlice<tensorflow::StringPiece>*") tensorflow.StringPieceVector candidate_input_names, @tensorflow.StringPiece String output_name, @Const @ByRef tensorflow.TensorShape output_shape, @ByPtrPtr tensorflow.Tensor output)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice IntPointer candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, @Const @ByRef tensorflow.AllocatorAttributes allocator_attr, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice IntBuffer candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, @Const @ByRef tensorflow.AllocatorAttributes allocator_attr, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice int[] candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, @Const @ByRef tensorflow.AllocatorAttributes allocator_attr, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice IntPointer candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice IntBuffer candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status forward_input_or_allocate_temp(@tensorflow.ArraySlice int[] candidate_input_indices, @Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status output_list(@tensorflow.StringPiece BytePointer name, tensorflow.OpOutputList list)
@ByVal public tensorflow.Status output_list(@tensorflow.StringPiece String name, tensorflow.OpOutputList list)
@ByVal public tensorflow.Status allocate_output(int index, @Const @ByRef tensorflow.TensorShape shape, @Cast(value="tensorflow::Tensor**") PointerPointer tensor)
@ByVal public tensorflow.Status allocate_output(int index, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.TensorShape shape, @Cast(value="tensorflow::Tensor**") PointerPointer tensor)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece String name, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status allocate_output(int index, @Const @ByRef tensorflow.TensorShape shape, @Cast(value="tensorflow::Tensor**") PointerPointer tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_output(int index, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.TensorShape shape, @Cast(value="tensorflow::Tensor**") PointerPointer tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_output(@tensorflow.StringPiece String name, @Const @ByRef tensorflow.TensorShape shape, @ByPtrPtr tensorflow.Tensor tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_temp(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp, @ByVal tensorflow.AllocatorAttributes allocator_attr, @Const @ByRef tensorflow.AllocationAttributes allocation_attr)
@ByVal public tensorflow.Status allocate_temp(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp, @ByVal tensorflow.AllocatorAttributes allocator_attr)
@ByVal public tensorflow.Status allocate_temp(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.Tensor out_temp)
@ByVal public tensorflow.Status allocate_persistent(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.PersistentTensor out_persistent, @Cast(value="tensorflow::Tensor**") PointerPointer out_tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_persistent(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.PersistentTensor out_persistent, @ByPtrPtr tensorflow.Tensor out_tensor, @ByVal tensorflow.AllocatorAttributes attr)
@ByVal public tensorflow.Status allocate_persistent(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.PersistentTensor out_persistent, @Cast(value="tensorflow::Tensor**") PointerPointer out_tensor)
@ByVal public tensorflow.Status allocate_persistent(@Cast(value="tensorflow::DataType") int type, @Const @ByRef tensorflow.TensorShape shape, tensorflow.PersistentTensor out_persistent, @ByPtrPtr tensorflow.Tensor out_tensor)
@ByVal public tensorflow.Status set_output(@tensorflow.StringPiece BytePointer name, @Const @ByRef tensorflow.Tensor tensor)
@ByVal public tensorflow.Status set_output(@tensorflow.StringPiece String name, @Const @ByRef tensorflow.Tensor tensor)
@ByVal public tensorflow.Status set_output_ref(@tensorflow.StringPiece BytePointer name, @Cast(value="tensorflow::mutex*") Pointer mu, tensorflow.Tensor tensor_for_ref)
@ByVal public tensorflow.Status set_output_ref(@tensorflow.StringPiece String name, @Cast(value="tensorflow::mutex*") Pointer mu, tensorflow.Tensor tensor_for_ref)
@ByVal public tensorflow.Status mutable_output(@tensorflow.StringPiece BytePointer name, @Cast(value="tensorflow::Tensor**") PointerPointer tensor)
@ByVal public tensorflow.Status mutable_output(@tensorflow.StringPiece BytePointer name, @ByPtrPtr tensorflow.Tensor tensor)
@ByVal public tensorflow.Status mutable_output(@tensorflow.StringPiece String name, @ByPtrPtr tensorflow.Tensor tensor)
public tensorflow.DeviceContext input_device_context(int index)
public tensorflow.DeviceContext op_device_context()
@ByVal public tensorflow.AllocatorAttributes input_alloc_attr(int index)
@ByVal public tensorflow.AllocatorAttributes output_alloc_attr(int index)
@ByVal public tensorflow.WrappedAllocatorVector wrapped_allocators()
public tensorflow.Rendezvous rendezvous()
public tensorflow.CollectiveExecutor collective_executor()
public tensorflow.SessionState session_state()
public tensorflow.TensorStore tensor_store()
public tensorflow.CallFrameInterface call_frame()
public tensorflow.FunctionLibraryRuntime function_library()
public tensorflow.StepStatsCollectorInterface stats_collector()
public tensorflow.ResourceMgr resource_manager()
public tensorflow.TensorSliceReaderCacheWrapper slice_reader_cache()
@Const @ByRef public tensorflow.ThreadPoolDevice eigen_cpu_device()
@Const @ByRef public tensorflow.GpuDevice eigen_gpu_device()
@ByVal public tensorflow.Status MatchSignature(@ByVal @Cast(value="const tensorflow::DataTypeSlice*") tensorflow.DataTypeVector expected_inputs, @ByVal @Cast(value="const tensorflow::DataTypeSlice*") tensorflow.DataTypeVector expected_outputs)
public void SetStatus(@Const @ByRef tensorflow.Status status)
@Const @ByRef public tensorflow.Status status()
public tensorflow.CancellationManager cancellation_manager()
@ByVal public tensorflow.FrameAndIter frame_iter()
public tensorflow.DeviceBase device()
public void retrieve_accessed_tensors(@Cast(value="tensorflow::TensorReferenceVector*") tensorflow.AllocatorAttributesVector out_vector)
public tensorflow.ScopedStepContainer step_container()
public void CtxFailure(@Const @ByRef tensorflow.Status s)
public void CtxFailureWithWarning(@Const @ByRef tensorflow.Status s)
public void CtxFailure(@Cast(value="const char*") BytePointer file, int line, @Const @ByRef tensorflow.Status s)
public void CtxFailure(String file, int line, @Const @ByRef tensorflow.Status s)
public void CtxFailureWithWarning(@Cast(value="const char*") BytePointer file, int line, @Const @ByRef tensorflow.Status s)
public void CtxFailureWithWarning(String file, int line, @Const @ByRef tensorflow.Status s)
public tensorflow.Tensor mutable_output(int index)
public void set_output(int index,
@Const @ByRef
tensorflow.Tensor tensor)
public void set_output_ref(int index,
@Cast(value="tensorflow::mutex*")
Pointer mu,
tensorflow.Tensor tensor_for_ref)
@ByVal public tensorflow.TensorValue release_output(int index)
public void record_temp_memory_allocation(@Cast(value="tensorflow::int64") long size, @Const @ByRef tensorflow.Tensor t)
public void record_persistent_memory_allocation(@Cast(value="tensorflow::int64") long size, @Cast(value="tensorflow::int64") long alloc_id)
public void record_persistent_memory_allocation(@Cast(value="tensorflow::int64") long size)
@Cast(value="tensorflow::int64") public long persistent_memory_allocated()
@Cast(value="tensorflow::int64*") @StdVector public LongPointer persistent_alloc_ids()
public void clear_recorded_memory()
Copyright © 2019. All rights reserved.