@Namespace(value="at::native") @Properties(inherit=torch_cuda.class) public class RNNDescriptor extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RNNDescriptor()
Default native constructor.
|
RNNDescriptor(long size)
Native array allocator.
|
RNNDescriptor(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
RNNDescriptor |
getPointer(long i) |
RNNDescriptor |
position(long position) |
void |
set(Pointer handle,
int hidden_size,
int proj_size,
int num_layers,
DropoutDescriptor dropout_desc,
int input_mode,
int bidirectional,
int mode,
int datatype,
int input_type,
int algo,
boolean allow_tf32) |
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 RNNDescriptor()
public RNNDescriptor(long size)
Pointer.position(long)
.public RNNDescriptor(Pointer p)
Pointer(Pointer)
.public RNNDescriptor position(long position)
public RNNDescriptor getPointer(long i)
getPointer
in class Pointer
public void set(@Cast(value="cudnnHandle_t") Pointer handle, int hidden_size, int proj_size, int num_layers, @ByRef(value=true) DropoutDescriptor dropout_desc, @Cast(value="cudnnRNNInputMode_t") int input_mode, @Cast(value="cudnnDirectionMode_t") int bidirectional, @Cast(value="cudnnRNNMode_t") int mode, @Cast(value="cudnnDataType_t") int datatype, @Cast(value="cudnnDataType_t") int input_type, @Cast(value="cudnnRNNAlgo_t") int algo, @Cast(value="bool") boolean allow_tf32)
Copyright © 2024. All rights reserved.