@Namespace(value="tensorflow") @Properties(inherit=tensorflow.class) public class TensorShapeUtils extends Pointer
TensorShape
. Includes a few common
predicates on a tensor shape.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorShapeUtils()
Default native constructor.
|
TensorShapeUtils(long size)
Native array allocator.
|
TensorShapeUtils(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
EndsWith(TensorShape shape,
TensorShape suffix)
\brief Returns true iff
shape ends with suffix . |
TensorShapeUtils |
getPointer(long i) |
static boolean |
IsMatrix(TensorShape shape) |
static boolean |
IsMatrixOrHigher(TensorShape shape) |
static boolean |
IsScalar(TensorShape shape) |
static boolean |
IsSquareMatrix(TensorShape shape) |
static boolean |
IsVector(TensorShape shape) |
static boolean |
IsVectorOrHigher(TensorShape shape) |
static Status |
MakeShape(int[] dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(int[] dims,
long n,
TensorShape out) |
static Status |
MakeShape(int[] shape,
PartialTensorShape out) |
static Status |
MakeShape(int[] shape,
TensorShape out) |
static Status |
MakeShape(IntBuffer dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(IntBuffer dims,
long n,
TensorShape out) |
static Status |
MakeShape(IntBuffer shape,
PartialTensorShape out) |
static Status |
MakeShape(IntBuffer shape,
TensorShape out) |
static Status |
MakeShape(IntPointer dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(IntPointer dims,
long n,
TensorShape out)
\brief Returns a
TensorShape whose dimensions are
dims[0] , dims[1] , ..., dims[n-1] . |
static Status |
MakeShape(IntPointer shape,
PartialTensorShape out) |
static Status |
MakeShape(IntPointer shape,
TensorShape out) |
static Status |
MakeShape(long[] dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(long[] dims,
long n,
TensorShape out) |
static Status |
MakeShape(long[] shape,
PartialTensorShape out) |
static Status |
MakeShape(long[] shape,
TensorShape out) |
static Status |
MakeShape(LongBuffer dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(LongBuffer dims,
long n,
TensorShape out) |
static Status |
MakeShape(LongBuffer shape,
PartialTensorShape out) |
static Status |
MakeShape(LongBuffer shape,
TensorShape out) |
static Status |
MakeShape(LongPointer dims,
long n,
PartialTensorShape out) |
static Status |
MakeShape(LongPointer dims,
long n,
TensorShape out) |
static Status |
MakeShape(LongPointer shape,
PartialTensorShape out) |
static Status |
MakeShape(LongPointer shape,
TensorShape out) |
static Status |
NumElements(long[] shape,
long... num_elements) |
static Status |
NumElements(LongBuffer shape,
LongBuffer num_elements) |
static Status |
NumElements(LongPointer shape,
LongPointer num_elements)
\brief Returns the product of values in an int64 array,
or a failing Status if the array represents a value larger than
a
TensorShape can hold. |
TensorShapeUtils |
position(long position) |
static BytePointer |
ShapeListString(TensorShapeVector shapes) |
static boolean |
StartsWith(TensorShape shape,
TensorShape prefix)
\brief Returns true iff
shape starts with prefix . |
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 TensorShapeUtils()
public TensorShapeUtils(long size)
Pointer.position(long)
.public TensorShapeUtils(Pointer p)
Pointer(Pointer)
.public TensorShapeUtils position(long position)
public TensorShapeUtils getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public static boolean IsScalar(@Const @ByRef TensorShape shape)
@Cast(value="bool") public static boolean IsVector(@Const @ByRef TensorShape shape)
@Cast(value="bool") public static boolean IsVectorOrHigher(@Const @ByRef TensorShape shape)
@Cast(value="bool") public static boolean IsMatrix(@Const @ByRef TensorShape shape)
@Cast(value="bool") public static boolean IsSquareMatrix(@Const @ByRef TensorShape shape)
@Cast(value="bool") public static boolean IsMatrixOrHigher(@Const @ByRef TensorShape shape)
@ByVal public static Status MakeShape(@Const IntPointer dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
TensorShape
whose dimensions are
dims[0]
, dims[1]
, ..., dims[n-1]
.@ByVal public static Status MakeShape(@Const IntBuffer dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
@ByVal public static Status MakeShape(@Const int[] dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") LongPointer dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") LongBuffer dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") long[] dims, @Cast(value="tensorflow::int64") long n, TensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice IntPointer shape, TensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice IntBuffer shape, TensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice int[] shape, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongPointer shape, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongBuffer shape, TensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice long[] shape, TensorShape out)
@ByVal public static Status MakeShape(@Const IntPointer dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@Const IntBuffer dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@Const int[] dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") LongPointer dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") LongBuffer dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="const tensorflow::int64*") long[] dims, @Cast(value="tensorflow::int64") long n, PartialTensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice IntPointer shape, PartialTensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice IntBuffer shape, PartialTensorShape out)
@ByVal public static Status MakeShape(@tensorflow.ArraySlice int[] shape, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongPointer shape, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongBuffer shape, PartialTensorShape out)
@ByVal public static Status MakeShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice long[] shape, PartialTensorShape out)
@StdString public static BytePointer ShapeListString(@Cast(value="const tensorflow::gtl::ArraySlice<tensorflow::TensorShape>*") @ByRef TensorShapeVector shapes)
@Cast(value="bool") public static boolean StartsWith(@Const @ByRef TensorShape shape, @Const @ByRef TensorShape prefix)
shape
starts with prefix
.@Cast(value="bool") public static boolean EndsWith(@Const @ByRef TensorShape shape, @Const @ByRef TensorShape suffix)
shape
ends with suffix
.@ByVal public static Status NumElements(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongPointer shape, @Cast(value="tensorflow::int64*") LongPointer num_elements)
TensorShape
can hold.@ByVal public static Status NumElements(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongBuffer shape, @Cast(value="tensorflow::int64*") LongBuffer num_elements)
Copyright © 2022. All rights reserved.