ggml_gru: Create a GRU Layer Object

View source: R/nn_functional.R

ggml_gruR Documentation

Create a GRU Layer Object

Description

Create a GRU Layer Object

Usage

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

Arguments

units

Integer, number of hidden units.

return_sequences

Logical.

activation

Candidate activation (default "tanh").

recurrent_activation

Gate activation (default "sigmoid").

name

Optional character name.

trainable

Logical.

Value

A ggml_layer object.


ggmlR documentation built on July 14, 2026, 1:08 a.m.