MCPcopy Create free account
hub / github.com/apple/axlearn / readfile

Function readfile

axlearn/common/file_system.py:165–167  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

163
164@_wrap_tf_errors
165def readfile(path: str) -> str:
166 with open(path, mode="r") as f:
167 return str(f.read())
168
169
170@_wrap_tf_errors

Callers 4

_job_historyFunction · 0.90
get_resource_limitsFunction · 0.90
_readfileFunction · 0.90
_load_runtime_optionsFunction · 0.90

Calls 1

openFunction · 0.85

Tested by

no test coverage detected