@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class UnionType extends SharedType
Type.TypePtr
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
UnionType(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHoldType(Type type) |
TypeArrayRef |
containedTypes() |
static UnionType |
create(TypeVector reference) |
Type.TypePtr |
createWithContained(TypeVector contained_types) |
boolean |
equals(Type rhs) |
TypeArrayRef |
getTypes() |
boolean |
hasFreeVariables() |
boolean |
isSubtypeOfExt(Type rhs_,
Pointer why_not) |
boolean |
isUnionType() |
static torch.TypeKind |
Kind() |
BytePointer |
str() |
TypePtrOptional |
subtractTypeSet(TypeVector to_subtract) |
TypePtrOptional |
toOptional() |
annotation_str, annotation_str, containedType, containedTypeSize, is_module, isSubtypeOf, kind, repr_str, requires_grad, withContained
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 UnionType(Pointer p)
Pointer(Pointer)
.@MemberGetter public static torch.TypeKind Kind()
@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()
@SharedPtr public static UnionType create(@ByVal TypeVector reference)
@Cast(value="bool") public boolean isUnionType()
isUnionType
in class Type
@ByVal public TypeArrayRef containedTypes()
containedTypes
in class Type
@ByVal public TypeArrayRef getTypes()
@ByVal public Type.TypePtr createWithContained(@ByVal TypeVector contained_types)
createWithContained
in class Type
@Cast(value="bool") public boolean hasFreeVariables()
hasFreeVariables
in class Type
@ByVal public TypePtrOptional toOptional()
@ByVal public TypePtrOptional subtractTypeSet(@ByRef TypeVector to_subtract)
Copyright © 2024. All rights reserved.