@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class GeneratorImpl extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
GeneratorImpl(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
GeneratorImplPtr |
clonePtr() |
long |
current_seed() |
Device |
device() |
long |
get_offset() |
TensorImplPtr |
get_state() |
DispatchKeySet |
key_set() |
Pointer |
pyobj() |
long |
seed() |
void |
set_current_seed(long seed) |
void |
set_offset(long offset) |
void |
set_pyobj(Pointer pyobj) |
void |
set_state(TensorImpl new_state) |
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 GeneratorImpl(Pointer p)
Pointer(Pointer)
.@ByVal @Name(value="clone") public GeneratorImplPtr clonePtr()
public void set_state(@Const @ByRef TensorImpl new_state)
@ByVal public TensorImplPtr get_state()
@ByVal public DispatchKeySet key_set()
@NoException(value=true) public void set_pyobj(@Cast(value="PyObject*") Pointer pyobj)
@Cast(value="PyObject*") @NoException(value=true) public Pointer pyobj()
Copyright © 2024. All rights reserved.