@Namespace(value="tensorflow") @Properties(inherit=tensorflow.class) public class TensorShape extends TensorShapeBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorShape() |
TensorShape(long... dim_sizes) |
TensorShape(long size)
Native array allocator.
|
TensorShape(LongBuffer dim_sizes) |
TensorShape(LongPointer dim_sizes) |
TensorShape(Pointer p)
Pointer cast constructor.
|
TensorShape(TensorShapeProto proto) |
Modifier and Type | Method and Description |
---|---|
PartialTensorShape |
asPartialTensorShape()
Allow a TensorShape to be used as a PartialTensorShape without copying
|
boolean |
equals(TensorShape b) |
TensorShape |
getPointer(long i) |
boolean |
IsSameSize(TensorShape b)
Returns true if
*this and b have the same sizes. |
boolean |
notEquals(TensorShape b) |
TensorShape |
position(long position) |
AddDim, AppendShape, AsProto, begin, dim_size, dim_sizes, dims, end, InsertDim, IsFullyDefined, IsValid, IsValidShape, RemoveDim, RemoveDimRange, RemoveLastDims, set_dim, unknown_rank
Clear, DebugString, DebugString, DumpRep, MaxDimensions, num_elements, put
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 TensorShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongPointer dim_sizes)
public TensorShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice LongBuffer dim_sizes)
public TensorShape(@Cast(value="tensorflow::int64*") @tensorflow.ArraySlice long... dim_sizes)
public TensorShape()
public TensorShape(@Const @ByRef TensorShapeProto proto)
public TensorShape(Pointer p)
Pointer(Pointer)
.public TensorShape(long size)
Pointer.position(long)
.public TensorShape position(long position)
position
in class TensorShapeBase
public TensorShape getPointer(long i)
getPointer
in class TensorShapeBase
@Const @ByRef @Name(value="operator const tensorflow::PartialTensorShape&") public PartialTensorShape asPartialTensorShape()
@Cast(value="bool") public boolean IsSameSize(@Const @ByRef TensorShape b)
*this
and b
have the same sizes. Ignores
dimension names.@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef TensorShape b)
Copyright © 2022. All rights reserved.