@Name(value="c10::ArrayRef<torch::jit::Value*>") @NoOffset @Properties(inherit=torch.class) public class ValueArrayRef extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ValueArrayRef()
\name Constructors
\{
|
ValueArrayRef(long size)
Native array allocator.
|
ValueArrayRef(Pointer p)
Pointer cast constructor.
|
ValueArrayRef(PointerPointer data,
long length)
Construct an ArrayRef from a pointer and length.
|
ValueArrayRef(PointerPointer begin,
PointerPointer end)
Construct an ArrayRef from a range.
|
ValueArrayRef(Value data,
long length) |
ValueArrayRef(Value begin,
Value end) |
ValueArrayRef(ValueVector vec)
Construct an ArrayRef from a std::vector.
|
Modifier and Type | Method and Description |
---|---|
Value |
at(long Index)
Vector compatibility
|
Value |
back()
back - Get the last element.
|
Value |
begin()
\}
\name Simple Operations
\{
|
Value |
cbegin() |
Value |
cend() |
PointerPointer |
data() |
boolean |
empty()
empty - Check if the array is empty.
|
Value |
end() |
boolean |
equals(ValueArrayRef RHS)
equals - Check for element-wise equality.
|
boolean |
equals(ValueVector RHS) |
Value |
front()
front - Get the first element.
|
Value |
get(long Index)
\}
\name Operator Overloads
\{
|
ValueArrayRef |
getPointer(long i) |
ValueArrayRef |
position(long position) |
long |
size()
size - Get the array size.
|
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
|
ValueVector |
vec()
\}
\name Expensive Operations
\{
|
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 ValueArrayRef(Pointer p)
Pointer(Pointer)
.public ValueArrayRef(long size)
Pointer.position(long)
.public ValueArrayRef()
Construct an empty ArrayRef.
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(@ByRef ValueVector vec)
public ValueArrayRef position(long position)
public ValueArrayRef getPointer(long i)
getPointer
in class Pointer
@Cast(value="torch::jit::Value**") public PointerPointer data()
@Cast(value="const bool") public boolean equals(@ByVal ValueArrayRef RHS)
@Cast(value="const bool") public boolean equals(@ByVal ValueVector RHS)
@Const @ByVal public ValueArrayRef slice(@Cast(value="size_t") long N, @Cast(value="size_t") long M)
@Const @ByVal public ValueArrayRef slice(@Cast(value="size_t") long N)
@ByPtrRef @Name(value="operator []") public Value get(@Cast(value="size_t") long Index)
@ByVal public ValueVector vec()
Copyright © 2024. All rights reserved.