@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class InterfaceType extends NamedType
Type.TypePtr
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
InterfaceType(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMethod(FunctionSchema schema) |
static InterfaceType |
create(QualifiedName qualifiedName) |
static InterfaceType |
create(QualifiedName qualifiedName,
boolean is_module) |
boolean |
equals(Type rhs) |
FunctionSchema |
getMethod(BytePointer name) |
FunctionSchema |
getMethod(String name) |
boolean |
is_module() |
boolean |
isSubtypeOfExt(Type rhs,
Pointer why_not) |
static torch.TypeKind |
Kind() |
FunctionSchema |
methods() |
BytePointer |
str() |
annotation_str, annotation_str, containedType, containedTypes, containedTypeSize, createWithContained, hasFreeVariables, isSubtypeOf, isUnionType, 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 InterfaceType(Pointer p)
Pointer(Pointer)
.@SharedPtr public static InterfaceType create(@ByVal QualifiedName qualifiedName, @Cast(value="bool") boolean is_module)
@SharedPtr public static InterfaceType create(@ByVal QualifiedName qualifiedName)
@StdString public BytePointer str()
@Cast(value="bool") public boolean isSubtypeOfExt(@Const @ByRef Type rhs, @Cast(value="std::ostream*") Pointer why_not)
isSubtypeOfExt
in class Type
@Const public FunctionSchema getMethod(@StdString BytePointer name)
@Const public FunctionSchema getMethod(@StdString String name)
public void addMethod(@ByVal FunctionSchema schema)
@StdVector public FunctionSchema methods()
@MemberGetter public static torch.TypeKind Kind()
Copyright © 2024. All rights reserved.