MCPcopy Create free account
hub / github.com/microsoft/TRELLIS / __from_env

Function __from_env

trellis/modules/sparse/conv/__init__.py:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4SPCONV_ALGO = 'auto' # 'auto', 'implicit_gemm', 'native'
5
6def __from_env():
7 import os
8
9 global SPCONV_ALGO
10 env_spconv_algo = os.environ.get('SPCONV_ALGO')
11 if env_spconv_algo is not None and env_spconv_algo in ['auto', 'implicit_gemm', 'native']:
12 SPCONV_ALGO = env_spconv_algo
13 print(f"[SPARSE][CONV] spconv algo: {SPCONV_ALGO}")
14
15
16__from_env()

Callers 1

__init__.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected