@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class Generator extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
Generator() |
Generator(GeneratorImplPtr gen_impl) |
Generator(long size)
Native array allocator.
|
Generator(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Generator |
clone() |
long |
current_seed() |
boolean |
defined() |
Device |
device() |
boolean |
equals(Generator rhs) |
long |
get_offset() |
Tensor |
get_state() |
GeneratorImplPtr |
getIntrusivePtr() |
Generator |
getPointer(long i) |
DispatchKeySet |
key_set() |
boolean |
notEquals(Generator rhs) |
Generator |
position(long position) |
Pointer |
pyobj() |
long |
seed() |
void |
set_current_seed(long seed) |
void |
set_offset(long offset) |
void |
set_pyobj(Pointer pyobj) |
void |
set_state(Tensor new_state) |
GeneratorImpl |
unsafeGetGeneratorImpl() |
GeneratorImpl |
unsafeReleaseGeneratorImpl() |
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, zeropublic Generator(Pointer p)
Pointer(Pointer).public Generator(long size)
Pointer.position(long).public Generator()
public Generator(@ByVal GeneratorImplPtr gen_impl)
public Generator getPointer(long i)
getPointer in class Pointer@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef Generator rhs)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef Generator rhs)
public GeneratorImpl unsafeGetGeneratorImpl()
public GeneratorImpl unsafeReleaseGeneratorImpl()
@Const @ByRef public GeneratorImplPtr getIntrusivePtr()
@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.