@Namespace(value="caffe2") @NoOffset @Properties(inherit=torch.class) public class TypeMeta extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TypeMeta()
Create a dummy TypeMeta object.
|
TypeMeta(long size)
Native array allocator.
|
TypeMeta(Pointer p)
Pointer cast constructor.
|
TypeMeta(TypeMeta src)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
PlacementCopier |
copy()
Returns the typed copy function pointer for individual iterms.
|
PointerConsumer |
deleteFn() |
boolean |
equals(TypeMeta rhs) |
static TypeMeta |
fromScalarType(torch.ScalarType scalar_type)
convert ScalarType enum values to TypeMeta handles
|
TypeMeta |
getPointer(long i) |
TypeIdentifier |
id()
Returns the type id.
|
boolean |
isScalarType()
true if we represent some ScalarType type
|
boolean |
isScalarType(torch.ScalarType scalar_type)
true if we represent ScalarType scalar_type
|
long |
itemsize()
Returns the size of the item.
|
BytePointer |
name()
Returns a printable name for the type.
|
PointerSupplier |
newFn()
Returns the new function pointer for individual items.
|
PlacementConsumer |
placementDelete()
Returns the destructor function pointer for individual items.
|
PlacementConsumer |
placementNew()
Returns the placement new function pointer for individual items.
|
TypeMeta |
position(long position) |
TypeMeta |
put(torch.ScalarType scalar_type) |
TypeMeta |
put(TypeMeta src)
Assignment operators.
|
torch.ScalarType |
toScalarType()
convert TypeMeta handles to ScalarType enum values
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public TypeMeta(Pointer p)
Pointer(Pointer)
.public TypeMeta(long size)
Pointer.position(long)
.public TypeMeta()
public TypeMeta getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") @NoException(value=true) public TypeMeta put(@Const @ByRef TypeMeta src)
@ByRef @Name(value="operator =") @NoException(value=true) public TypeMeta put(torch.ScalarType scalar_type)
@ByVal @NoException(value=true) public TypeIdentifier id()
@Cast(value="bool") @NoException(value=true) public boolean isScalarType()
@Cast(value="bool") @NoException(value=true) public boolean isScalarType(torch.ScalarType scalar_type)
@Cast(value="size_t") @NoException(value=true) public long itemsize()
@NoException(value=true) public PointerSupplier newFn()
@NoException(value=true) public PlacementConsumer placementNew()
@NoException(value=true) public PlacementCopier copy()
@NoException(value=true) public PlacementConsumer placementDelete()
@NoException(value=true) public PointerConsumer deleteFn()
@StringView @NoException(value=true) public BytePointer name()
public boolean equals(TypeMeta rhs)
@ByVal public static TypeMeta fromScalarType(torch.ScalarType scalar_type)
public torch.ScalarType toScalarType()
Copyright © 2024. All rights reserved.