@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class ThreadLocalState extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ThreadLocalState() |
ThreadLocalState(long size)
Native array allocator.
|
ThreadLocalState(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ThreadLocalState |
getPointer(long i) |
ThreadLocalState |
position(long position) |
void |
set_grad_mode(boolean enabled) |
void |
set_multithreading_enabled(boolean enabled) |
static void |
setThreadLocalState(ThreadLocalState state) |
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 ThreadLocalState(Pointer p)
Pointer(Pointer)
.public ThreadLocalState(long size)
Pointer.position(long)
.public ThreadLocalState()
public ThreadLocalState position(long position)
public ThreadLocalState getPointer(long i)
getPointer
in class Pointer
public void set_multithreading_enabled(@Cast(value="bool") boolean enabled)
public static void setThreadLocalState(@Const @ByRef ThreadLocalState state)
Copyright © 2024. All rights reserved.