MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / get_conda_env

Function get_conda_env

vtp/models/utils/utils.py:107–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def get_conda_env() -> Tuple[Optional[str], Optional[str]]:
108 conda_env_name = os.environ.get("CONDA_DEFAULT_ENV")
109 conda_env_path = os.environ.get("CONDA_PREFIX")
110 return conda_env_name, conda_env_path
111
112
113def has_batchnorms(model: nn.Module) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected