KerasWrapper: Base R6 class for Keras wrappers

Description Format Value Methods

Description

Base R6 class for Keras wrappers

Format

An R6Class generator object

Value

KerasWrapper.

Methods

build(input_shape)

Builds the wrapped layer. Subclasses can extend this to perform custom operations on that layer.

call(inputs,mask)

Calls the wrapped layer on an input tensor.

compute_output_shape(input_shape)

Computes the output shape for the wrapped layer.

add_loss(losses, inputs)

Subclasses can use this to add losses to the wrapped layer.

add_weight(name,shape,dtype,initializer,regularizer,trainable,constraint)

Subclasses can use this to add weights to the wrapped layer.


dfalbel/keras documentation built on Nov. 27, 2019, 8:16 p.m.