@Namespace(value="at") @Properties(inherit=torch.class) public class SavedTensorDefaultHooks extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SavedTensorDefaultHooks()
Default native constructor.
|
SavedTensorDefaultHooks(long size)
Native array allocator.
|
SavedTensorDefaultHooks(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
disable(BytePointer error_message) |
static void |
disable(String error_message) |
static void |
enable() |
static StringOptional |
get_disabled_error_message() |
static Pointer |
get_hooks() |
static Pointer |
get_stack() |
static SavedTensorDefaultHooksTLS |
get_tls_state() |
SavedTensorDefaultHooks |
getPointer(long i) |
static boolean |
is_enabled() |
static void |
lazy_initialize() |
static void |
pop_hooks() |
SavedTensorDefaultHooks |
position(long position) |
static void |
push_hooks(Pointer pack_hook,
Pointer unpack_hook) |
static void |
set_stack(Pointer arg0) |
static void |
set_tls_state(SavedTensorDefaultHooksTLS tls) |
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 SavedTensorDefaultHooks()
public SavedTensorDefaultHooks(long size)
Pointer.position(long)
.public SavedTensorDefaultHooks(Pointer p)
Pointer(Pointer)
.public SavedTensorDefaultHooks position(long position)
public SavedTensorDefaultHooks getPointer(long i)
getPointer
in class Pointer
public static void push_hooks(@Cast(value="PyObject*") Pointer pack_hook, @Cast(value="PyObject*") Pointer unpack_hook)
public static void pop_hooks()
public static void lazy_initialize()
@ByVal @Cast(value="std::stack<std::pair<PyObject*,PyObject*> >*") public static Pointer get_stack()
public static void set_stack(@ByVal @Cast(value="std::stack<std::pair<PyObject*,PyObject*> >*") Pointer arg0)
@Const @ByRef public static SavedTensorDefaultHooksTLS get_tls_state()
public static void set_tls_state(@Const @ByRef SavedTensorDefaultHooksTLS tls)
public static void disable(@StdString BytePointer error_message)
public static void disable(@StdString String error_message)
public static void enable()
@Const @ByRef public static StringOptional get_disabled_error_message()
Copyright © 2024. All rights reserved.