inference-kernels / scripts /sitecustomize.py
ubospica's picture
Publish complete Inference Kernels dataset
65e1c10
Raw History Blame Contribute Delete
309 Bytes
"""Enable serving-worker capture only when explicitly requested by environment."""
import os
if os.environ.get("INFERENCE_CAPTURE_ROOT"):
try:
from capture_inputs import install
install()
except Exception:
import traceback
traceback.print_exc()
os._exit(70)