MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _hasattr

Function _hasattr

tensorflow/python/ops/rnn_cell_impl.py:62–68  ·  view source on GitHub ↗
(obj, attr_name)

Source from the content-addressed store, hash-verified

60
61
62def _hasattr(obj, attr_name):
63 try:
64 getattr(obj, attr_name)
65 except AttributeError:
66 return False
67 else:
68 return True
69
70
71def assert_like_rnncell(cell_name, cell):

Callers 2

assert_like_rnncellFunction · 0.85
zero_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected