@Namespace(value="tensorflow::shape_inference") public static class tensorflow.InferenceContext extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
static long |
kUnknownDim |
static int |
kUnknownRank |
| Constructor and Description |
|---|
InferenceContext(Pointer p)
Pointer cast constructor.
|
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 static final long kUnknownDim
public static final int kUnknownRank
public InferenceContext(Pointer p)
Pointer.Pointer(Pointer).@MemberGetter @Cast(value="const tensorflow::int64") public static long kUnknownDim()
@MemberGetter public static int kUnknownRank()
@ByVal public tensorflow.Status Run(@ByVal tensorflow.ShapeInferenceFn fn)
@Cast(value="bool") public boolean MergeInput(int idx, @ByVal tensorflow.ShapeHandle shape)
@Cast(value="bool") public boolean RelaxInput(int idx, @ByVal tensorflow.ShapeHandle shape)
public void SetInput(int idx,
@ByVal
tensorflow.ShapeHandle shape)
@ByVal public tensorflow.ShapeHandle input(@Cast(value="tensorflow::int64") long idx)
@ByVal public tensorflow.Status input(@tensorflow.StringPiece BytePointer input_name, @StdVector tensorflow.ShapeHandle output)
@ByVal public tensorflow.Status input(@tensorflow.StringPiece String input_name, @StdVector tensorflow.ShapeHandle output)
public int num_inputs()
@Const public tensorflow.Tensor input_tensor(int idx)
@Cast(value="bool") public boolean requested_input_tensor_as_partial_shape(int idx)
public void set_input_tensors(@Const @ByRef tensorflow.ConstTensorPtrVector input_tensors)
public void set_input_tensors_as_shapes(@StdVector tensorflow.ShapeHandle input_tensors_as_shapes)
@StdVector public tensorflow.ShapeHandle input_tensors_as_shapes()
@ByVal public tensorflow.ShapeHandle output(@Cast(value="tensorflow::int64") long idx)
public void set_output(int idx,
@ByVal
tensorflow.ShapeHandle shape)
@ByVal public tensorflow.Status set_output(@tensorflow.StringPiece BytePointer output_name, @StdVector tensorflow.ShapeHandle shapes)
@ByVal public tensorflow.Status set_output(@tensorflow.StringPiece String output_name, @StdVector tensorflow.ShapeHandle shapes)
public int num_outputs()
@ByVal public tensorflow.ShapeHandle output(int idx)
@ByVal public tensorflow.Status output(@tensorflow.StringPiece BytePointer output_name, @StdVector tensorflow.ShapeHandle output)
@ByVal public tensorflow.Status output(@tensorflow.StringPiece String output_name, @StdVector tensorflow.ShapeHandle output)
@ByVal public tensorflow.AttrSlice attrs()
@StdString public BytePointer op()
@ByVal public tensorflow.DimensionHandle Dim(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long idx)
@ByVal public static tensorflow.DimensionHandle DimKnownRank(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long idx)
public static int Rank(@ByVal tensorflow.ShapeHandle s)
@Cast(value="bool") public static boolean RankKnown(@ByVal tensorflow.ShapeHandle s)
@Cast(value="tensorflow::int64") public static long Value(@ByVal tensorflow.DimensionOrConstant d)
@Cast(value="bool") public static boolean ValueKnown(@ByVal tensorflow.DimensionOrConstant d)
public void ShapeHandleToProto(@ByVal tensorflow.ShapeHandle handle, tensorflow.TensorShapeProto proto)
@Cast(value="bool") public boolean FullyDefined(@ByVal tensorflow.ShapeHandle s)
@ByVal public tensorflow.DimensionHandle NumElements(@ByVal tensorflow.ShapeHandle s)
@StdString public BytePointer DebugString(@ByVal tensorflow.ShapeHandle s)
@StdString public BytePointer DebugString(@ByVal tensorflow.DimensionHandle d)
@StdString public BytePointer DebugString(@Const @ByRef tensorflow.ShapeAndType shape_and_type)
@StdString public BytePointer DebugString()
@ByVal public tensorflow.Status WithRank(@ByVal tensorflow.ShapeHandle shape, @Cast(value="tensorflow::int64") long rank, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status WithRankAtLeast(@ByVal tensorflow.ShapeHandle shape, @Cast(value="tensorflow::int64") long rank, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status WithRankAtMost(@ByVal tensorflow.ShapeHandle shape, @Cast(value="tensorflow::int64") long rank, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status WithValue(@ByVal tensorflow.DimensionHandle dim, @Cast(value="tensorflow::int64") long value, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Merge(@ByVal tensorflow.ShapeHandle s0, @ByVal tensorflow.ShapeHandle s1, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status MergePrefix(@ByVal tensorflow.ShapeHandle s, @ByVal tensorflow.ShapeHandle prefix, tensorflow.ShapeHandle s_out, tensorflow.ShapeHandle prefix_out)
@ByVal public tensorflow.Status Merge(@ByVal tensorflow.DimensionHandle d0, @ByVal tensorflow.DimensionHandle d1, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Subshape(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long start, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status Subshape(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long start, @Cast(value="tensorflow::int64") long end, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status Subshape(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long start, @Cast(value="tensorflow::int64") long end, @Cast(value="tensorflow::int64") long stride, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status Concatenate(@ByVal tensorflow.ShapeHandle s1, @ByVal tensorflow.ShapeHandle s2, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status ReplaceDim(@ByVal tensorflow.ShapeHandle s, @Cast(value="tensorflow::int64") long dim_index, @ByVal tensorflow.DimensionHandle new_dim, tensorflow.ShapeHandle out)
@ByVal public tensorflow.ShapeHandle MakeShape(@StdVector tensorflow.DimensionHandle dims)
@ByVal public tensorflow.ShapeHandle UnknownShape()
@ByVal public tensorflow.ShapeHandle UnknownShapeOfRank(@Cast(value="tensorflow::int64") long rank)
@ByVal public tensorflow.ShapeHandle Scalar()
@ByVal public tensorflow.ShapeHandle Vector(@ByVal tensorflow.DimensionOrConstant dim)
@ByVal public tensorflow.ShapeHandle Matrix(@ByVal tensorflow.DimensionOrConstant dim1, @ByVal tensorflow.DimensionOrConstant dim2)
@ByVal public tensorflow.Status MakeShapeFromShapeTensor(int input_idx, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status MakeShapeFromShapeTensorTreatScalarAsUnknownShape(int input_idx, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status MakeShapeFromShapeProto(@Const @ByRef tensorflow.TensorShapeProto proto, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status MakeShapeFromPartialTensorShape(@Const @ByRef tensorflow.PartialTensorShape partial_shape, tensorflow.ShapeHandle out)
@ByVal public tensorflow.Status MakeShapeFromTensorShape(@Const @ByRef tensorflow.TensorShape shape, tensorflow.ShapeHandle out)
@ByVal public tensorflow.DimensionHandle MakeDim(@ByVal tensorflow.DimensionOrConstant d)
@ByVal public tensorflow.DimensionHandle UnknownDim()
@ByVal public tensorflow.Status GetScalarFromTensor(@Const tensorflow.Tensor t, @Cast(value="tensorflow::int64*") LongPointer val)
@ByVal public tensorflow.Status GetScalarFromTensor(@Const tensorflow.Tensor t, @Cast(value="tensorflow::int64*") LongBuffer val)
@ByVal public tensorflow.Status GetScalarFromTensor(@Const tensorflow.Tensor t, @Cast(value="tensorflow::int64*") long... val)
@ByVal public tensorflow.Status MakeDimForScalarInput(int idx, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status MakeDimForScalarInputWithNegativeIndexing(int idx, int input_rank, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Divide(@ByVal tensorflow.DimensionHandle dividend, @ByVal tensorflow.DimensionOrConstant divisor, @Cast(value="bool") boolean evenly_divisible, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Add(@ByVal tensorflow.DimensionHandle first, @ByVal tensorflow.DimensionOrConstant second, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Subtract(@ByVal tensorflow.DimensionHandle first, @ByVal tensorflow.DimensionOrConstant second, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Multiply(@ByVal tensorflow.DimensionHandle first, @ByVal tensorflow.DimensionOrConstant second, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Min(@ByVal tensorflow.DimensionHandle first, @ByVal tensorflow.DimensionOrConstant second, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status Max(@ByVal tensorflow.DimensionHandle first, @ByVal tensorflow.DimensionOrConstant second, tensorflow.DimensionHandle out)
@ByVal public tensorflow.Status construction_status()
@Cast(value="bool") public boolean MergeInputHandleShapesAndTypes(int idx, @StdVector tensorflow.ShapeAndType shapes_and_types)
@Cast(value="bool") public boolean MergeOutputHandleShapesAndTypes(int idx, @StdVector tensorflow.ShapeAndType shapes_and_types)
@Cast(value="bool") public boolean RelaxInputHandleShapesAndMergeTypes(int idx, @StdVector tensorflow.ShapeAndType shapes_and_types)
@Cast(value="bool") public boolean RelaxOutputHandleShapesAndMergeTypes(int idx, @StdVector tensorflow.ShapeAndType shapes_and_types)
public void set_input_handle_shapes_and_types(int idx,
@StdVector
tensorflow.ShapeAndType shapes_and_types)
@StdVector public tensorflow.ShapeAndType output_handle_shapes_and_types(int idx)
@StdVector public tensorflow.ShapeAndType input_handle_shapes_and_types(int idx)
public void set_output_handle_shapes_and_types(int idx,
@StdVector
tensorflow.ShapeAndType shapes_and_types)
@ByVal public tensorflow.Status MakeShapeFromTensor(@Const tensorflow.Tensor t, @ByVal tensorflow.ShapeHandle tensor_shape, tensorflow.ShapeHandle out)
public int graph_def_version()
@StdVector public tensorflow.ShapeHandlePair MergedShapes()
@StdVector public tensorflow.DimensionHandlePair MergedDims()
Copyright © 2019. All rights reserved.