@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class TupleType extends NamedType
Type.TypePtrPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
TupleType(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeArrayRef |
containedTypes() |
static TupleType |
create() |
static TupleType |
create(TypeVector types) |
static TupleType |
createNamed(QualifiedNameOptional name,
StringVector field_names,
TypeVector field_types) |
static TupleType |
createNamed(QualifiedNameOptional name,
StringVector field_names,
TypeVector field_types,
IValueVector field_defaults) |
static TupleType |
createNamed(QualifiedNameOptional name,
StringViewVector field_names,
TypeVector field_types) |
Type.TypePtr |
createWithContained(TypeVector contained_types) |
TypeArrayRef |
elements() |
boolean |
equals(Type rhs) |
boolean |
hasFreeVariables() |
boolean |
isSubtypeOfExt(Type rhs_,
Pointer why_not) |
static torch.TypeKind |
Kind() |
StringViewVectorOptional |
names() |
FunctionSchema |
schema() |
BytePointer |
str() |
annotation_str, annotation_str, containedType, containedTypeSize, is_module, isSubtypeOf, isUnionType, kind, repr_str, requires_grad, withContainedaddress, 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, zeropublic TupleType(Pointer p)
Pointer(Pointer).@SharedPtr public static TupleType createNamed(@Const @ByRef QualifiedNameOptional name, @Const @ByRef StringVector field_names, @Const @ByRef TypeVector field_types, @ByRef IValueVector field_defaults)
@SharedPtr public static TupleType createNamed(@Const @ByRef QualifiedNameOptional name, @Const @ByRef StringVector field_names, @Const @ByRef TypeVector field_types)
@SharedPtr public static TupleType createNamed(@Const @ByRef QualifiedNameOptional name, @Const @ByRef StringViewVector field_names, @Const @ByRef TypeVector field_types)
@SharedPtr public static TupleType create(@ByVal TypeVector types)
@SharedPtr public static TupleType create()
@ByVal public TypeArrayRef elements()
@Cast(value="bool") public boolean isSubtypeOfExt(@Const @ByRef Type rhs_, @Cast(value="std::ostream*") Pointer why_not)
isSubtypeOfExt in class Type@StdString public BytePointer str()
@Cast(value="bool") public boolean hasFreeVariables()
hasFreeVariables in class Type@ByVal public TypeArrayRef containedTypes()
containedTypes in class Type@ByVal public Type.TypePtr createWithContained(@ByVal TypeVector contained_types)
createWithContained in class Type@SharedPtr public FunctionSchema schema()
@ByVal public StringViewVectorOptional names()
@MemberGetter public static torch.TypeKind Kind()
Copyright © 2024. All rights reserved.