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

Function _set

scripts/check_modules.py:59–63  ·  view source on GitHub ↗
(key: str, value)

Source from the content-addressed store, hash-verified

57 env = os.environ
58
59 def _set(key: str, value) -> None:
60 if value is None:
61 return
62 env[key] = str(value)
63 print(f"backend_config overrode {key} to {env[key]}")
64
65 if "HSA_OVERRIDE_GFX_VERSION" in backend_config:
66 _set("HSA_OVERRIDE_GFX_VERSION", backend_config["HSA_OVERRIDE_GFX_VERSION"])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected