@Namespace(value="torch::jit::detail") @Properties(inherit=torch.class) public class BufferPolicy extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static boolean |
all_slots |
| Constructor and Description |
|---|
BufferPolicy()
Default native constructor.
|
BufferPolicy(long size)
Native array allocator.
|
BufferPolicy(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
all_slots() |
static Tensor |
create(SlotCursor cursors,
IValue v) |
BufferPolicy |
getPointer(long i) |
BufferPolicy |
position(long position) |
static boolean |
valid(ClassType typ,
long i,
IValue v) |
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 BufferPolicy()
public BufferPolicy(long size)
Pointer.position(long).public BufferPolicy(Pointer p)
Pointer(Pointer).public BufferPolicy position(long position)
public BufferPolicy getPointer(long i)
getPointer in class Pointer@ByVal @Cast(value="torch::jit::detail::BufferPolicy::value_type*") public static Tensor create(@StdVector SlotCursor cursors, @ByVal IValue v)
@Cast(value="bool") public static boolean valid(@Const @SharedPtr(value="c10::ClassType") @ByRef ClassType typ, @Cast(value="size_t") long i, @Const @ByRef IValue v)
@MemberGetter @Cast(value="const bool") public static boolean all_slots()
Copyright © 2024. All rights reserved.