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

Method __init__

tensorflow/python/debug/cli/cli_config.py:40–50  ·  view source on GitHub ↗
(self, config_file_path=None)

Source from the content-addressed store, hash-verified

38 ]
39
40 def __init__(self, config_file_path=None):
41 self._config_file_path = (config_file_path or
42 self._default_config_file_path())
43 self._config = collections.OrderedDict(self._DEFAULT_CONFIG)
44 if gfile.Exists(self._config_file_path):
45 config = self._load_from_file()
46 for key, value in config.items():
47 self._config[key] = value
48 self._save_to_file()
49
50 self._set_callbacks = {}
51
52 def get(self, property_name):
53 if property_name not in self._config:

Callers

nothing calls this directly

Calls 4

_load_from_fileMethod · 0.95
_save_to_fileMethod · 0.95
ExistsMethod · 0.45

Tested by

no test coverage detected