@Namespace(value="at::impl") @Properties(inherit=torch.class) public class PythonTorchFunctionTLS extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
PythonTorchFunctionTLS()
Default native constructor.
|
PythonTorchFunctionTLS(long size)
Native array allocator.
|
PythonTorchFunctionTLS(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static torch.TorchFunctionDisabledState |
get_disabled_state() |
static SafePyObject |
get_stack_at(long idx) |
static PythonTorchFunctionTLS |
get_state() |
PythonTorchFunctionTLS |
getPointer(long i) |
static SafePyObject |
pop_stack() |
PythonTorchFunctionTLS |
position(long position) |
static void |
push_onto_stack(SafePyObject mode) |
static void |
set_disabled_state(int disabled_state_) |
static void |
set_disabled_state(torch.TorchFunctionDisabledState disabled_state_) |
static void |
set_state(PythonTorchFunctionTLS state) |
static long |
stack_len() |
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 PythonTorchFunctionTLS()
public PythonTorchFunctionTLS(long size)
Pointer.position(long)
.public PythonTorchFunctionTLS(Pointer p)
Pointer(Pointer)
.public PythonTorchFunctionTLS position(long position)
public PythonTorchFunctionTLS getPointer(long i)
getPointer
in class Pointer
public static void set_disabled_state(torch.TorchFunctionDisabledState disabled_state_)
public static void set_disabled_state(@Cast(value="at::impl::TorchFunctionDisabledState") int disabled_state_)
public static torch.TorchFunctionDisabledState get_disabled_state()
public static void push_onto_stack(@SharedPtr SafePyObject mode)
@SharedPtr public static SafePyObject pop_stack()
@SharedPtr public static SafePyObject get_stack_at(@Cast(value="int64_t") long idx)
@Const @ByRef public static PythonTorchFunctionTLS get_state()
public static void set_state(@Const @ByRef PythonTorchFunctionTLS state)
Copyright © 2024. All rights reserved.