MCPcopy Create free account
hub / github.com/pytorch/executorch / get_platform

Function get_platform

util/collect_env.py:378–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376
377
378def get_platform():
379 if sys.platform.startswith("linux"):
380 return "linux"
381 elif sys.platform.startswith("win32"):
382 return "win32"
383 elif sys.platform.startswith("cygwin"):
384 return "cygwin"
385 elif sys.platform.startswith("darwin"):
386 return "darwin"
387 else:
388 return sys.platform
389
390
391def get_mac_version(run_lambda):

Callers 8

runFunction · 0.85
get_gpu_infoFunction · 0.85
get_cudnn_versionFunction · 0.85
get_nvidia_smiFunction · 0.85
get_cpu_infoFunction · 0.85
get_osFunction · 0.85
get_libc_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected