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