This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/_TestScripts/Scripts and Tests/find_torch.py
T
2026-08-20 00:45:43 +02:00

13 lines
419 B
Python

#!/usr/bin/env python3
"""Find which inference/ files import torch and sounddevice."""
import subprocess, sys
cmd = """
grep -rn 'import torch\\|import sounddevice' /opt/qwen3-tts/qwen3_tts_gguf/inference/ 2>/dev/null | grep -v __pycache__
"""
result = subprocess.run(
["docker", "run", "--rm", "--entrypoint", "bash", "sudx/qwen3-tts:latest", "-c", cmd],
capture_output=True, text=True
)
print(result.stdout)