@Namespace(value="tvm::runtime") @NoOffset @Properties(inherit=tvm_runtime.class) public class ShapeTuple extends ObjectRef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static boolean |
_type_is_nullable |
| Constructor and Description |
|---|
ShapeTuple()
\brief Construct an empty shape tuple.
|
ShapeTuple(long... shape) |
ShapeTuple(long size)
Native array allocator.
|
ShapeTuple(LongBuffer shape) |
ShapeTuple(LongPointer shape)
\brief Construct a new ShapeTuple object
|
ShapeTuple(ObjectPtr n) |
ShapeTuple(Pointer p)
Pointer cast constructor.
|
ShapeTuple(ShapeTuple other) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
_type_is_nullable() |
ShapeTupleObj |
access() |
long |
at(long idx)
\brief Immutably read i-th element from the shape tuple.
|
long |
back() |
LongPointer |
begin() |
LongPointer |
data()
\brief Return the data pointer
|
boolean |
empty() |
LongPointer |
end() |
long |
front() |
ShapeTupleObj |
get() |
long |
get(long idx)
\brief Immutably read i-th element from the shape tuple.
|
ShapeTuple |
getPointer(long i) |
ShapeTuple |
position(long position) |
ShapeTuple |
put(ShapeTuple other) |
long |
size()
\brief Return the size of the shape tuple
|
defined, equals, lessThan, notEquals, same_as, unique, use_countaddress, 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, zeropublic ShapeTuple(Pointer p)
Pointer(Pointer).public ShapeTuple(long size)
Pointer.position(long).public ShapeTuple()
public ShapeTuple(@Cast(value="tvm::runtime::ShapeTuple::index_type*") @StdVector LongPointer shape)
shape - The moved/copied std::vector object
\note If user passes const reference, it will trigger copy. If it's rvalue,
it will be moved into other.public ShapeTuple(@Cast(value="tvm::runtime::ShapeTuple::index_type*") @StdVector LongBuffer shape)
public ShapeTuple(@Cast(value="tvm::runtime::ShapeTuple::index_type*") @StdVector long... shape)
public ShapeTuple(@Const @ByRef ShapeTuple other)
public ShapeTuple position(long position)
public ShapeTuple getPointer(long i)
getPointer in class ObjectRef@Cast(value="const tvm::runtime::ShapeTuple::index_type*") public LongPointer data()
@Cast(value="size_t") public long size()
@Cast(value="tvm::runtime::ShapeTuple::index_type") @Name(value="operator []") public long get(@Cast(value="size_t") long idx)
idx - The index@Cast(value="tvm::runtime::ShapeTuple::index_type") public long at(@Cast(value="size_t") long idx)
idx - The index@Cast(value="tvm::runtime::ShapeTuple::index_type") public long front()
@Cast(value="tvm::runtime::ShapeTuple::index_type") public long back()
@Cast(value="const tvm::runtime::ShapeTuple::index_type*") public LongPointer begin()
@Cast(value="const tvm::runtime::ShapeTuple::index_type*") public LongPointer end()
@ByRef @Name(value="operator =") public ShapeTuple put(@Const @ByRef ShapeTuple other)
@Const @Name(value="operator ->") public ShapeTupleObj access()
@Const public ShapeTupleObj get()
@MemberGetter @Cast(value="const bool") public static boolean _type_is_nullable()
Copyright © 2022. All rights reserved.