View source: R/attentionUtilities.R
layer_attention_augmentation_2d | R Documentation |
Wraps the AttentionAugmentation2D layer.
layer_attention_augmentation_2d(
object,
depthOfQueries,
depthOfValues,
numberOfHeads,
isRelative,
trainable = TRUE
)
object |
Object to compose layer with. This is either a keras::keras_model_sequential to add the layer to, or another Layer which this layer will call. |
depthOfQueries |
number of filters for queries. |
depthOfValues |
number of filters for values. |
numberOfHeads |
number of attention heads to use. It is required
that |
isRelative |
whether or not to use relative encodings. |
trainable |
Whether the layer weights will be updated during training. |
a keras layer tensor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.