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

Function _is_path

python/oneflow/framework/check_point_v2.py:109–110  ·  view source on GitHub ↗
(path_or_buffer)

Source from the content-addressed store, hash-verified

107
108
109def _is_path(path_or_buffer):
110 return isinstance(path_or_buffer, Path)
111
112
113def _check_seekable(f) -> bool:

Callers 7

_open_file_likeFunction · 0.85
is_oneflow_pickle_fileFunction · 0.85
loadFunction · 0.85
saveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected