@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class OpKernel extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static long |
kCostDecay |
static long |
kInitialCostEstimateCycles |
static long |
kOpIsExpensiveThresholdCycles |
Constructor and Description |
---|
OpKernel(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 static final long kInitialCostEstimateCycles
public static final long kOpIsExpensiveThresholdCycles
public static final long kCostDecay
public OpKernel(Pointer p)
Pointer(Pointer)
.public void Compute(OpKernelContext context)
public AsyncOpKernel AsAsync()
@MemberGetter @Cast(value="const tensorflow::uint64") public static long kInitialCostEstimateCycles()
@MemberGetter @Cast(value="const tensorflow::uint64") public static long kOpIsExpensiveThresholdCycles()
@MemberGetter @Cast(value="const tensorflow::uint64") public static long kCostDecay()
public void UpdateCostEstimate(@Cast(value="tensorflow::uint64") long elapsed_cycles)
@StdString public BytePointer name()
@StdString public BytePointer type_string()
@StdString public BytePointer requested_device()
public int num_inputs()
@Const @ByRef public DataTypeVector input_types()
@Cast(value="const tensorflow::MemoryTypeVector*") @ByRef public TensorValueVector input_memory_types()
@StdString public BytePointer requested_input(int i)
public int num_outputs()
@Const @ByRef public DataTypeVector output_types()
@Cast(value="const tensorflow::MemoryTypeVector*") @ByRef public TensorValueVector output_memory_types()
@ByVal public Status InputRange(@tensorflow.StringPiece BytePointer input_name, IntPointer start, IntPointer stop)
@ByVal public Status InputRange(@tensorflow.StringPiece String input_name, IntBuffer start, IntBuffer stop)
@ByVal public Status InputRange(@tensorflow.StringPiece BytePointer input_name, int[] start, int... stop)
@ByVal public Status InputRange(@tensorflow.StringPiece String input_name, IntPointer start, IntPointer stop)
@ByVal public Status InputRange(@tensorflow.StringPiece BytePointer input_name, IntBuffer start, IntBuffer stop)
@ByVal public Status InputRange(@tensorflow.StringPiece String input_name, int[] start, int... stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece BytePointer output_name, IntPointer start, IntPointer stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece String output_name, IntBuffer start, IntBuffer stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece BytePointer output_name, int[] start, int... stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece String output_name, IntPointer start, IntPointer stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece BytePointer output_name, IntBuffer start, IntBuffer stop)
@ByVal public Status OutputRange(@tensorflow.StringPiece String output_name, int[] start, int... stop)
@Cast(value="bool") public boolean IsLegacyScalar(@Const @ByRef TensorShape shape)
@Cast(value="bool") public boolean IsLegacyVector(@Const @ByRef TensorShape shape)
public static int DeviceNumaNode(@Const DeviceBase device)
Copyright © 2022. All rights reserved.