MCPcopy
hub / github.com/z-lab/dflash / _env_int

Function _env_int

dflash/benchmark.py:135–136  ·  view source on GitHub ↗
(name: str, default: int)

Source from the content-addressed store, hash-verified

133
134
135def _env_int(name: str, default: int) -> int:
136 return int(os.environ.get(name, default))
137
138
139def _dist_init(torch_dist) -> None:

Callers 3

_dist_sizeFunction · 0.85
_dist_rankFunction · 0.85
_dist_local_rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected