@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class AutogradState extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AutogradState(boolean grad_mode,
boolean inference_mode,
boolean fw_grad_mode,
boolean multithreading_enabled) |
AutogradState(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
get_fw_grad_mode() |
boolean |
get_grad_mode() |
boolean |
get_inference_mode() |
boolean |
get_multithreading_enabled() |
static AutogradState |
get_tls_state() |
boolean |
get_view_replay_enabled() |
void |
set_fw_grad_mode(boolean enabled) |
void |
set_grad_mode(boolean enabled) |
void |
set_inference_mode(boolean enabled) |
void |
set_multithreading_enabled(boolean multithreading_enabled) |
static void |
set_tls_state(AutogradState state) |
void |
set_view_replay_enabled(boolean view_replay_enabled) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public AutogradState(Pointer p)
Pointer(Pointer)
.@ByRef public static AutogradState get_tls_state()
public static void set_tls_state(@ByVal AutogradState state)
public void set_multithreading_enabled(@Cast(value="bool") boolean multithreading_enabled)
public void set_view_replay_enabled(@Cast(value="bool") boolean view_replay_enabled)
Copyright © 2024. All rights reserved.