MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / convert_metadata

Function convert_metadata

tensorboard/tools/convert_tbdev_export.py:117–124  ·  view source on GitHub ↗
(exp_dir, out_dir)

Source from the content-addressed store, hash-verified

115
116
117def convert_metadata(exp_dir, out_dir):
118 # Store the directory name this was converted from (which typically
119 # would contain the experiment ID), but othewrise copy unchanged.
120 with open(os.path.join(exp_dir, _METADATA_FILE)) as f:
121 metadata = json.load(f)
122 metadata["converted_from"] = os.path.basename(exp_dir)
123 with open(os.path.join(out_dir, "converted_metadata.json"), mode="w") as f:
124 json.dump(metadata, f)
125
126
127def convert_scalars(exp_dir, out_dir):

Callers 1

convertFunction · 0.85

Calls 2

joinMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…