@Namespace(value="at::native") @NoOffset @Properties(inherit=torch_cuda.class) public class DropoutDescriptor extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DropoutDescriptor()
Default native constructor.
|
DropoutDescriptor(long size)
Native array allocator.
|
DropoutDescriptor(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
DropoutDescriptor |
getPointer(long i) |
void |
initialize_rng(Pointer handle,
float dropout,
long seed,
TensorOptions options) |
DropoutDescriptor |
position(long position) |
void |
set_no_dropout(Pointer handle) |
void |
set(Pointer handle,
float dropout,
Tensor state_) |
Tensor |
state() |
DropoutDescriptor |
state(Tensor setter) |
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 DropoutDescriptor()
public DropoutDescriptor(long size)
Pointer.position(long)
.public DropoutDescriptor(Pointer p)
Pointer(Pointer)
.public DropoutDescriptor position(long position)
public DropoutDescriptor getPointer(long i)
getPointer
in class Pointer
public DropoutDescriptor state(Tensor setter)
public void initialize_rng(@Cast(value="cudnnHandle_t") Pointer handle, float dropout, long seed, @Const @ByRef TensorOptions options)
public void set(@Cast(value="cudnnHandle_t") Pointer handle, float dropout, @ByVal Tensor state_)
Copyright © 2024. All rights reserved.