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

Function _is_attrs_instance

tensorflow/python/client/session.py:204–206  ·  view source on GitHub ↗

Returns True if the given obj is an instance of attrs-decorated class.

(obj)

Source from the content-addressed store, hash-verified

202
203
204def _is_attrs_instance(obj):
205 """Returns True if the given obj is an instance of attrs-decorated class."""
206 return getattr(obj.__class__, '__attrs_attrs__', None) is not None
207
208
209def _get_attrs_values(obj):

Callers 1

for_fetchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected