Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
get
Method · 0.95
test_read_write
Method · 0.80
test_update_to
Method · 0.80
Calls
2
items
Method · 0.45
dump
Method · 0.45
Tested by
2
test_read_write
Method · 0.64
test_update_to
Method · 0.64