@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class LSTMImpl extends LSTMImplBase
torch::nn::LSTMOptions
class to learn what
constructor arguments are supported for this module.
Example:
LSTM model(LSTMOptions(2,
4).num_layers(3).batch_first(false).bidirectional(true));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LSTMImpl(long input_size,
long hidden_size) |
LSTMImpl(LSTMOptions options_) |
LSTMImpl(Module pointer)
Downcast constructor.
|
LSTMImpl(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
T_PackedSequenceT_TensorTensor_T_T |
forward_with_packed_input(PackedSequence packed_input) |
T_PackedSequenceT_TensorTensor_T_T |
forward_with_packed_input(PackedSequence packed_input,
T_TensorTensor_TOptional hx_opt) |
T_TensorT_TensorTensor_T_T |
forward(Tensor input) |
T_TensorT_TensorTensor_T_T |
forward(Tensor input,
T_TensorTensor_TOptional hx_opt) |
LSTMOptions |
options() |
LSTMImpl |
options(LSTMOptions setter) |
all_weights, flatten_parameters, options_base, options_base, pretty_print, reset_parameters, reset, to, to, to, to, to, to
asModule, asModule, clone, clone
apply, apply, apply, apply, apply, apply, apply, apply, buffers, buffers, children, eval, is_serializable, is_training, load, modules, modules, name, named_buffers, named_buffers, named_children, named_modules, named_modules, named_modules, named_parameters, named_parameters, parameters, parameters, register_buffer, register_buffer, register_module, register_module, register_parameter, register_parameter, register_parameter, register_parameter, save, shiftLeft, train, unregister_module, unregister_module, zero_grad
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 LSTMImpl(Pointer p)
Pointer(Pointer)
.public LSTMImpl(Module pointer)
public LSTMImpl(@Cast(value="int64_t") long input_size, @Cast(value="int64_t") long hidden_size)
public LSTMImpl(@Const @ByRef LSTMOptions options_)
@ByVal public T_TensorT_TensorTensor_T_T forward(@Const @ByRef Tensor input, @ByVal(nullValue="torch::optional<std::tuple<torch::Tensor,torch::Tensor> >{}") T_TensorTensor_TOptional hx_opt)
@ByVal public T_TensorT_TensorTensor_T_T forward(@Const @ByRef Tensor input)
@ByVal public T_PackedSequenceT_TensorTensor_T_T forward_with_packed_input(@Const @ByRef PackedSequence packed_input, @ByVal(nullValue="torch::optional<std::tuple<torch::Tensor,torch::Tensor> >{}") T_TensorTensor_TOptional hx_opt)
@ByVal public T_PackedSequenceT_TensorTensor_T_T forward_with_packed_input(@Const @ByRef PackedSequence packed_input)
@ByRef public LSTMOptions options()
public LSTMImpl options(LSTMOptions setter)
Copyright © 2024. All rights reserved.