@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class Type extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
Type.TypePtr |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Type(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BytePointer |
annotation_str() |
BytePointer |
annotation_str(TypePrinter printer) |
Type.TypePtr |
containedType(long i) |
TypeArrayRef |
containedTypes() |
long |
containedTypeSize() |
Type.TypePtr |
createWithContained(TypeVector arg0) |
boolean |
equals(Type rhs) |
boolean |
hasFreeVariables() |
boolean |
is_module() |
boolean |
isSubtypeOf(Type rhs) |
boolean |
isSubtypeOfExt(Type rhs,
Pointer why_not) |
boolean |
isUnionType() |
torch.TypeKind |
kind() |
BytePointer |
repr_str() |
boolean |
requires_grad() |
BytePointer |
str() |
Type.TypePtr |
withContained(TypeVector contained_types) |
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 Type(Pointer p)
Pointer(Pointer)
.public boolean equals(Type rhs)
@Cast(value="bool") public boolean isSubtypeOfExt(@Const @ByRef Type rhs, @Cast(value="std::ostream*") Pointer why_not)
@StdString public BytePointer str()
@StdString public BytePointer annotation_str(@ByVal TypePrinter printer)
@StdString public BytePointer annotation_str()
@StdString public BytePointer repr_str()
public torch.TypeKind kind()
@ByVal public TypeArrayRef containedTypes()
@ByVal public Type.TypePtr containedType(@Cast(value="size_t") long i)
@ByVal public Type.TypePtr withContained(@ByVal TypeVector contained_types)
@ByVal public Type.TypePtr createWithContained(@ByVal TypeVector arg0)
Copyright © 2024. All rights reserved.