MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / dump

Method dump

util/config.py:303–309  ·  view source on GitHub ↗
(self, file=None)

Source from the content-addressed store, hash-verified

301 return iter(self._cfg_dict)
302
303 def dump(self, file=None):
304 # import pdb; pdb.set_trace()
305 if file is None:
306 return self.pretty_text
307 else:
308 with open(file, 'w') as f:
309 f.write(self.pretty_text)
310
311 def merge_from_dict(self, options):
312 """Merge list into cfg_dict.

Callers 6

train_one_epochFunction · 0.45
mainFunction · 0.45
collect_resultsFunction · 0.45
merge_modelsFunction · 0.45
clean_fnFunction · 0.45
update_configMethod · 0.45

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected