MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / write_file

Function write_file

python/oneflow/framework/check_point_v2.py:726–728  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

724 path_or_buffer = path_or_buffer / PICKLE_FILENAME
725
726 def write_file():
727 with _open_file_like(path_or_buffer, "wb") as f:
728 f.write(pickled_bytes)
729
730 if global_dst_rank is not None:
731 assert isinstance(

Callers 1

saveFunction · 0.85

Calls 1

_open_file_likeFunction · 0.85

Tested by

no test coverage detected