@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class DictType extends SharedType
Type.TypePtr
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DictType(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeArrayRef |
containedTypes() |
static DictType |
create(Type.TypePtr key,
Type.TypePtr value) |
Type.TypePtr |
createWithContained(TypeVector contained_types) |
boolean |
equals(Type rhs) |
static Type.TypePtr |
get(BytePointer identifier,
Type.TypePtr key,
Type.TypePtr val) |
static Type.TypePtr |
get(String identifier,
Type.TypePtr key,
Type.TypePtr val) |
Type.TypePtr |
getKeyType() |
Type.TypePtr |
getValueType() |
boolean |
hasFreeVariables() |
static torch.TypeKind |
Kind() |
BytePointer |
str() |
annotation_str, annotation_str, containedType, containedTypeSize, is_module, isSubtypeOf, isSubtypeOfExt, 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 DictType(Pointer p)
Pointer(Pointer)
.@MemberGetter public static torch.TypeKind Kind()
@SharedPtr public static DictType create(@ByVal Type.TypePtr key, @ByVal Type.TypePtr value)
@StdString public BytePointer str()
@ByVal public Type.TypePtr createWithContained(@ByVal TypeVector contained_types)
createWithContained
in class Type
@Const @ByRef public Type.TypePtr getKeyType()
@Const @ByRef public Type.TypePtr getValueType()
@Cast(value="bool") public boolean hasFreeVariables()
hasFreeVariables
in class Type
@ByVal public TypeArrayRef containedTypes()
containedTypes
in class Type
@ByVal public static Type.TypePtr get(@StdString BytePointer identifier, @ByVal Type.TypePtr key, @ByVal Type.TypePtr val)
@ByVal public static Type.TypePtr get(@StdString String identifier, @ByVal Type.TypePtr key, @ByVal Type.TypePtr val)
Copyright © 2024. All rights reserved.