tf.DropoutLayer module

tf.DropoutLayer module

class tf.DropoutLayer.DropoutLayer(*args: Any, **kwargs: Any)

Bases: modelzoo.common.layers.tf.BaseLayer.BaseLayer

Wrapper around the Keras dropout layer.

call(inputs, training=True, **kwargs)

Performs the dropout.

Parameters
  • inputs (Tensor) – Arbitrary tensor.

  • training (bool) – Training mode if set to True.

Returns

A tensor of same shape as input.

Return type

Tensor