@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class CPUGeneratorImpl extends GeneratorImpl
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
CPUGeneratorImpl() |
CPUGeneratorImpl(long seed_in) |
CPUGeneratorImpl(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CPUGeneratorImpl |
clone() |
long |
current_seed() |
static torch.DeviceType |
device_type() |
mt19937_engine |
engine() |
long |
get_offset() |
TensorImplPtr |
get_state() |
DoubleOptional |
next_double_normal_sample() |
FloatOptional |
next_float_normal_sample() |
int |
random() |
long |
random64() |
long |
seed() |
void |
set_current_seed(long seed) |
void |
set_engine(mt19937_engine engine) |
void |
set_next_double_normal_sample(DoubleOptional randn) |
void |
set_next_float_normal_sample(FloatOptional randn) |
void |
set_offset(long offset) |
void |
set_state(TensorImpl new_state) |
clonePtr, device, key_set, pyobj, set_pyobjaddress, 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, zeropublic CPUGeneratorImpl(Pointer p)
Pointer(Pointer).public CPUGeneratorImpl()
@SharedPtr public CPUGeneratorImpl clone()
public void set_current_seed(@Cast(value="uint64_t") long seed)
set_current_seed in class GeneratorImplpublic void set_offset(@Cast(value="uint64_t") long offset)
set_offset in class GeneratorImpl@Cast(value="uint64_t") public long get_offset()
get_offset in class GeneratorImpl@Cast(value="uint64_t") public long current_seed()
current_seed in class GeneratorImpl@Cast(value="uint64_t") public long seed()
seed in class GeneratorImplpublic void set_state(@Const @ByRef TensorImpl new_state)
set_state in class GeneratorImpl@ByVal public TensorImplPtr get_state()
get_state in class GeneratorImplpublic static torch.DeviceType device_type()
@ByVal public FloatOptional next_float_normal_sample()
@ByVal public DoubleOptional next_double_normal_sample()
public void set_next_float_normal_sample(@ByVal FloatOptional randn)
public void set_next_double_normal_sample(@ByVal DoubleOptional randn)
@ByVal @Cast(value="at::mt19937*") public mt19937_engine engine()
public void set_engine(@ByVal @Cast(value="at::mt19937*") mt19937_engine engine)
Copyright © 2024. All rights reserved.