ContextualAttentionLayer2D | R Documentation |
Contextual attention layer for generative image inpainting described in
Jiahui Yu, et al., Generative Image Inpainting with Contextual Attention, CVPR 2018.
available here:
\code{https://arxiv.org/abs/1801.07892}
output tensor with the same shape as the input.
layer <- ContextualAttentionLayer2D$new( scale ) layer$call( x, mask = NULL ) layer$build( input_shape ) layer$compute_output_shape( input_shape )
A process
object.
feature scale. Default = 20
$initialize
instantiates a new class.
$build
$call
main body.
$compute_output_shape
computes the output shape.
Tustison NJ
x = ContextualAttentionLayer2D$new()
x$build()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.