| KerasLayer | R Documentation |
Custom R6 layers can now inherit directly from keras$layers$Layer or other layers.
An R6Class generator object
KerasLayer.
build(input_shape)Creates the layer weights (must be implemented by all layers that have weights)
call(inputs,mask)Call the layer on an input tensor.
compute_output_shape(input_shape)Compute the output shape for the layer.
add_loss(losses, inputs)Add losses to the layer.
add_weight(name,shape,dtype,initializer,regularizer,trainable,constraint)Adds a weight variable to the layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.