@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class TensorShapeRep extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorShapeRep(Pointer p)
Pointer cast constructor.
|
TensorShapeRep(TensorShapeRep b)
Copy the specified shape
|
Modifier and Type | Method and Description |
---|---|
void |
Clear()
Clear a tensor shape, producing the scalar shape.
|
BytePointer |
DebugString()
For error messages.
|
static BytePointer |
DebugString(TensorShapeProto proto) |
void |
DumpRep() |
static int |
MaxDimensions() |
long |
num_elements()
\brief Returns the number of elements in the tensor.
|
void |
put(TensorShapeRep b) |
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 TensorShapeRep(Pointer p)
Pointer(Pointer)
.public TensorShapeRep(@Const @ByRef TensorShapeRep b)
@Name(value="operator =") public void put(@Const @ByRef TensorShapeRep b)
public void Clear()
public static int MaxDimensions()
@Cast(value="tensorflow::int64") public long num_elements()
int64
and not size_t
to be compatible with Eigen::Tensor
which uses ptrdiff_t
. For PartialTensorShape, -1 means not fully
defined.@StdString public BytePointer DebugString()
@StdString public static BytePointer DebugString(@Const @ByRef TensorShapeProto proto)
public void DumpRep()
Copyright © 2022. All rights reserved.