Skip to contents

Reset the state for a model, layer or metric.

Usage

reset_state(object)

Arguments

object

Model, Layer, or Metric instance

Not all Layers have resettable state (E.g., adapt()-able preprocessing layers and rnn layers have resettable state, but a layer_dense() does not). Calling this on a Layer instance without any resettable-state will error.

Value

object, invisibly.

See also

Other layer methods:
count_params()
get_config()
get_weights()
quantize_weights()