MCPcopy Create free account
hub / github.com/pytorch/pytorch / write_to_disk

Method write_to_disk

scripts/release_notes/common.py:329–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 return data
328
329 def write_to_disk(self):
330 data = {commit: features._asdict() for commit, features in self.data.items()}
331 with open(self.path, "w") as f:
332 json.dump(data, f)

Callers 3

getMethod · 0.95
test_read_writeMethod · 0.80
test_update_toMethod · 0.80

Calls 2

itemsMethod · 0.45
dumpMethod · 0.45

Tested by 2

test_read_writeMethod · 0.64
test_update_toMethod · 0.64