bidirectional {keras3} | R Documentation |
layer_bidirectional
Description
bidirectional()
is an alias for layer_bidirectional()
.
See ?
layer_bidirectional()
for the full documentation.
Usage
bidirectional(
object,
layer,
merge_mode = "concat",
weights = NULL,
backward_layer = NULL,
...
)
Arguments
object |
Object to compose the layer with. A tensor, array, or sequential model. |
layer |
|
merge_mode |
Mode by which outputs of the forward and backward RNNs
will be combined. One of |
weights |
see description |
backward_layer |
Optional |
... |
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 callinglayer(input)
is returned.-
NULL
or missing, then aLayer
instance is returned.