MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / get_platform

Function get_platform

fastdeploy/collect_env.py:407–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405
406
407def get_platform():
408 if sys.platform.startswith("linux"):
409 return "linux"
410 elif sys.platform.startswith("win32"):
411 return "win32"
412 elif sys.platform.startswith("cygwin"):
413 return "cygwin"
414 elif sys.platform.startswith("darwin"):
415 return "darwin"
416 else:
417 return sys.platform
418
419
420def get_mac_version(run_lambda):

Callers 9

runFunction · 0.85
get_gpu_infoFunction · 0.85
get_cudnn_versionFunction · 0.85
get_nvidia_smiFunction · 0.85
get_gpu_topoFunction · 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