transformer | R Documentation |
Transformer
transformer(x, d_model, num_heads, dff, mask = NULL)
x |
inputs |
d_model |
dimensions of the model |
num_heads |
number of heads |
dff |
dimensions of feed-forward model |
mask |
optional mask |
output of the transformer layer
x <- matrix(rnorm(50 * 512), 50, 512)
d_model <- 512
num_heads <- 8
dff <- 2048
output <- transformer(x, d_model, num_heads, dff)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.