@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class GRUOptions extends Pointer
GRU
module.
Example:
GRU model(GRUOptions(2,
4).num_layers(3).batch_first(false).bidirectional(true));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
GRUOptions(long input_size,
long hidden_size) |
GRUOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
batch_first() |
BoolPointer |
bias() |
BoolPointer |
bidirectional() |
DoublePointer |
dropout() |
LongPointer |
hidden_size() |
LongPointer |
input_size() |
LongPointer |
num_layers() |
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 GRUOptions(Pointer p)
Pointer(Pointer)
.@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer input_size()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer hidden_size()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer num_layers()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer bias()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer batch_first()
@ByRef @NoException(value=true) public DoublePointer dropout()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer bidirectional()
Copyright © 2024. All rights reserved.