@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class EnumType extends NamedType
Type.TypePtr
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
EnumType(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
compilation_unit() |
TypeArrayRef |
containedTypes() |
EnumNameValueArrayRef |
enumNamesValues() |
boolean |
equals(Type rhs) |
Type.TypePtr |
getValueType() |
boolean |
isSubtypeOfExt(Type rhs,
Pointer why_not) |
static torch.TypeKind |
Kind() |
QualifiedName |
qualifiedClassName() |
BytePointer |
repr_str() |
BytePointer |
str() |
annotation_str, annotation_str, containedType, containedTypeSize, createWithContained, hasFreeVariables, is_module, isSubtypeOf, isUnionType, kind, 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 EnumType(Pointer p)
Pointer(Pointer)
.@MemberGetter public static torch.TypeKind Kind()
@StdString public BytePointer str()
@StdString public BytePointer repr_str()
@Const @ByRef public Type.TypePtr getValueType()
@Cast(value="bool") public boolean isSubtypeOfExt(@Const @ByRef Type rhs, @Cast(value="std::ostream*") Pointer why_not)
isSubtypeOfExt
in class Type
@SharedPtr(value="const torch::jit::CompilationUnit") @ByVal public CompilationUnit compilation_unit()
@Const @ByVal public QualifiedName qualifiedClassName()
@ByVal public TypeArrayRef containedTypes()
containedTypes
in class Type
@Const @ByVal public EnumNameValueArrayRef enumNamesValues()
Copyright © 2024. All rights reserved.