bidirectional | R Documentation |
bidirectional()
is an alias for layer_bidirectional()
.
See ?
layer_bidirectional()
for the full documentation.
bidirectional(
object,
layer,
merge_mode = "concat",
weights = NULL,
backward_layer = NULL,
...
)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.