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