Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""Run multiple jobs, potentially in parallel to leverage multiple GPUs on host."""
import hashlib
from os import environ
from os.path import expanduser, exists
import subprocess
import shlex
import time
@alantian
alantian / CompileTF.sh
Last active October 29, 2018 22:18
Compile TensorFlow 1.12 with CUDA 10 on conda environment on Arch Linux.
# Compiling TensorFlow 1.12 with CUDA 10 on conda environment on Arch Linux.
#
# Desired versions:
# - TensorFlow 1.12
# - Python 3.6
#
# Tested on Arch Linux with:
# - cuda 10.0.130-2
# - cudnn 7.3.0-1
# - nccl 2.3.4.4-2
@alantian
alantian / lsut_text_preprocess.py
Created November 9, 2018 13:29
(tentative) text preprocess for JSUT dataset
#!/usr/bin/env python3
from collections import Counter
from os.path import join
import re
import os
import pykakasi
# --- Routines