ScaleLayer | R Documentation |
Custom scale layer
A keras layer
integer specifying which axis to normalize.
momentum value used for computation of the exponential average of the mean and standard deviation.
Dimensionality of the input (integer) not including the samples axis.
$initialize
instantiates a new class.
$call
main body.
$compute_output_shape
computes the output shape.
Tustison NJ
library(keras)
inputImageSize = c( 256L, 256L, 1L )
inputs <- keras::layer_input( shape = inputImageSize )
outputs <- inputs %>% layer_zero_padding_2d( padding = c( 3L, 3L ) )
layer_scale = ANTsRNet:::layer_scale
outputs = outputs %>%
layer_scale(axis = -1L)
lay = ScaleLayer$new()
## Not run:
lay$build(input_shape = inputImageSize)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.