reset_state: Reset the state for a model, layer or metric.

View source: R/layer-methods.R

reset_stateR Documentation

Reset the state for a model, layer or metric.

Description

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()


rstudio/keras documentation built on April 27, 2024, 10:11 p.m.