time_distributed: layer_time_distributed

time_distributedR Documentation

layer_time_distributed

Description

time_distributed() is an alias for layer_time_distributed(). See ⁠?⁠layer_time_distributed() for the full documentation.

Usage

time_distributed(object, layer, ...)

Arguments

object

Object to compose the layer with. A tensor, array, or sequential model.

layer

A Layer instance.

...

For forward/backward compatability.

Value

The return value depends on the value provided for the first argument. If object is:

  • a keras_model_sequential(), then the layer is added to the sequential model (which is modified in place). To enable piping, the sequential model is also returned, invisibly.

  • a keras_input(), then the output tensor from calling layer(input) is returned.

  • NULL or missing, then a Layer instance is returned.


rstudio/keras documentation built on April 22, 2024, 11:43 p.m.