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

Function get_fn

tensorflow/python/data/util/options.py:74–78  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

72 """
73
74 def get_fn(option):
75 # pylint: disable=protected-access
76 if name not in option._options:
77 option._options[name] = default_factory()
78 return option._options.get(name)
79
80 def set_fn(option, value):
81 if not isinstance(value, (ty, type(None))):

Callers 1

__internal_getMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected