Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ reset_states
Method
reset_states
tensorflow/python/keras/engine/network.py:443–446 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
441
for
layer in self.layers)
442
443
def
reset_states(self):
444
for
layer in self.layers:
445
if
hasattr(layer,
'reset_states'
) and getattr(layer,
'stateful'
, False):
446
layer.reset_states()
447
448
@property
449
def
state_updates(self):
Callers
1
reset_metrics
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected