Learn R Programming

ggmlR (version 0.6.1)

ggml_lstm: Create an LSTM Layer Object

Description

Create an LSTM Layer Object

Usage

ggml_lstm(
  units,
  return_sequences = FALSE,
  activation = "tanh",
  recurrent_activation = "sigmoid",
  name = NULL,
  trainable = TRUE
)

Value

A ggml_layer object.

Arguments

units

Integer, number of hidden units.

return_sequences

Logical.

activation

Cell gate activation (default "tanh").

recurrent_activation

Recurrent gate activation (default "sigmoid").

name

Optional character name.

trainable

Logical.