MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / get_arch

Function get_arch

ui/easydiffusion/backends/sdkit3.py:209–217  ·  view source on GitHub ↗

Get architecture for target.

()

Source from the content-addressed store, hash-verified

207 return OS_NAME.lower()
208
209 def get_arch():
210 """Get architecture for target."""
211 machine = platform.machine().lower()
212 if machine in ("x86_64", "amd64"):
213 return "x64"
214 elif machine in ("arm64", "aarch64"):
215 return "arm64"
216 else:
217 return machine
218
219 platform_name = backend_config.get("platform", get_platform_name())
220 variant_name = backend_config.get("variant", get_variant_name(platform_name))

Callers 1

get_targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected