@Namespace(value="c10::detail::infer_schema") @NoOffset @Properties(inherit=torch.class) public class ArgumentDef extends Pointer
ArgumentDef instead of Argument,
because that can be constructed at compile time and has a much smaller
binary size than having calls to Argument constructors in the template.
Creating Argument objects from ArgumentDef can then be done at
runtime in a non-templated way.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
ArgumentDef() |
ArgumentDef(long size)
Native array allocator.
|
ArgumentDef(Pointer p)
Pointer cast constructor.
|
ArgumentDef(TypeSupplier getTypeFn,
TypeSupplier getFakeTypeFn) |
| Modifier and Type | Method and Description |
|---|---|
TypeSupplier |
getFakeTypeFn() |
ArgumentDef |
getFakeTypeFn(TypeSupplier setter) |
ArgumentDef |
getPointer(long i) |
TypeSupplier |
getTypeFn() |
ArgumentDef |
getTypeFn(TypeSupplier setter) |
ArgumentDef |
position(long position) |
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, zeropublic ArgumentDef(Pointer p)
Pointer(Pointer).public ArgumentDef(long size)
Pointer.position(long).public ArgumentDef()
public ArgumentDef(TypeSupplier getTypeFn, TypeSupplier getFakeTypeFn)
public ArgumentDef position(long position)
public ArgumentDef getPointer(long i)
getPointer in class Pointerpublic TypeSupplier getTypeFn()
public ArgumentDef getTypeFn(TypeSupplier setter)
public TypeSupplier getFakeTypeFn()
public ArgumentDef getFakeTypeFn(TypeSupplier setter)
Copyright © 2024. All rights reserved.