@Namespace(value="c10::ivalue") @NoOffset @Properties(inherit=torch.class) public class Tuple extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Tuple(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static TuplePtr |
create(IValue e1) |
static TuplePtr |
create(IValueArrayRef elements_) |
static TuplePtr |
create(IValue e1,
IValue e2) |
static TuplePtr |
create(IValue e1,
IValue e2,
IValue e3) |
static TuplePtr |
create(IValueVector elements_) |
static TuplePtr |
create(TupleElements elements_) |
static TuplePtr |
createNamed(IValueVector elements_,
Type.TypePtr type_) |
static TuplePtr |
createNamed(TupleElements elements_,
TupleType type_) |
TupleElements |
elements() |
boolean |
equals(Tuple rhs) |
static long |
hash(Tuple t) |
void |
setElements(IValueVector elements) |
void |
setElements(TupleElements elements) |
long |
size() |
void |
unsafeSetElement(long idx,
IValue element) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Tuple(Pointer p)
Pointer(Pointer)
.@ByVal public static TuplePtr createNamed(@ByVal IValueVector elements_, @ByVal Type.TypePtr type_)
@ByVal public static TuplePtr createNamed(@ByVal TupleElements elements_, @SharedPtr TupleType type_)
@ByVal public static TuplePtr create(@ByVal IValueVector elements_)
@ByVal public static TuplePtr create(@ByVal TupleElements elements_)
@ByVal public static TuplePtr create(@ByVal IValueArrayRef elements_)
@Const @ByRef public TupleElements elements()
public void setElements(@ByRef(value=true) IValueVector elements)
public void setElements(@ByRef(value=true) TupleElements elements)
public void unsafeSetElement(@Cast(value="size_t") long idx, @Const @ByRef IValue element)
public boolean equals(Tuple rhs)
Copyright © 2024. All rights reserved.