@Name(value="c10::ArrayRef<torch::jit::Value*>") @Properties(inherit=torch.class) public class ValueArrayRef extends ValueHeaderOnlyArrayRef
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ValueArrayRef() |
ValueArrayRef(long size)
Native array allocator.
|
ValueArrayRef(Pointer p)
Pointer cast constructor.
|
ValueArrayRef(PointerPointer data,
long length) |
ValueArrayRef(PointerPointer begin,
PointerPointer end) |
ValueArrayRef(Value data,
long length) |
ValueArrayRef(Value begin,
Value end) |
ValueArrayRef(ValueVector vec)
Construct an ArrayRef from a SmallVector.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
at(long Index)
\}
\name Operator Overloads
\{
|
Value |
back()
back - Get the last element.
|
Value |
front()
\}
\name Simple Operations, mostly inherited from HeaderOnlyArrayRef
\{
|
ValueArrayRef |
getPointer(long i) |
ValueArrayRef |
position(long position) |
ValueArrayRef |
slice(long N)
slice(n) - Chop off the first N elements of the array.
|
ValueArrayRef |
slice(long N,
long M)
slice(n, m) - Take M elements of the array starting at element N
We deviate from HeaderOnlyArrayRef by using TORCH_CHECK instead of
STD_TORCH_CHECK
|
data, empty, get, size, vecaddress, 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, trimMemory, withDeallocator, zeropublic ValueArrayRef()
public ValueArrayRef(@Cast(value="torch::jit::Value**") PointerPointer data, @Cast(value="size_t") long length)
public ValueArrayRef(@Cast(value="torch::jit::Value**") PointerPointer begin, @Cast(value="torch::jit::Value**") PointerPointer end)
public ValueArrayRef(Pointer p)
Pointer(Pointer).public ValueArrayRef(long size)
Pointer.position(long).public ValueArrayRef(@ByRef ValueVector vec)
public ValueArrayRef position(long position)
position in class ValueHeaderOnlyArrayRefpublic ValueArrayRef getPointer(long i)
getPointer in class ValueHeaderOnlyArrayRef@ByPtrRef public Value front()
front - Get the first element. We deviate from HeaderOnlyArrayRef by using TORCH_CHECK instead of STD_TORCH_CHECK
front in class ValueHeaderOnlyArrayRef@ByPtrRef public Value back()
back in class ValueHeaderOnlyArrayRef@Const @ByVal public ValueArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
slice in class ValueHeaderOnlyArrayRef@Const @ByVal public ValueArrayRef slice(@Cast(value="size_t") long N)
slice in class ValueHeaderOnlyArrayRefCopyright © 2026. All rights reserved.