@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class RNNCellOptions extends Pointer
RNNCell
module.
Example:
RNNCell model(RNNCellOptions(20,
10).bias(false).nonlinearity(torch::kReLU));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RNNCellOptions(long input_size,
long hidden_size) |
RNNCellOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
bias() |
LongPointer |
hidden_size() |
LongPointer |
input_size() |
RNNNonlinearity |
nonlinearity() |
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 RNNCellOptions(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="bool*") @ByRef @NoException(value=true) public BoolPointer bias()
@ByRef @NoException(value=true) public RNNNonlinearity nonlinearity()
Copyright © 2024. All rights reserved.