This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
unofficial Paderborn university's wide residual BLSTM acoustic model. | |
no warranty at all. | |
This implementation is raughly based on | |
http://spandh.dcs.shef.ac.uk/chime_workshop/papers/CHiME_2016_paper_11.pdf | |
http://spandh.dcs.shef.ac.uk/chime_workshop/presentations/CHiME_2016_Menne_oral.pdf | |
# w/ BLSTM | |
python ./chime4.py 9.87s user 2.27s system 104% cpu 11.636 total |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import six | |
from os.path import basename | |
import yaml | |
root = "/home/karita/tool/attention-lvcsr" | |
cfgs = [] | |
def recursive_update(original, update): | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
just WIP unable to run | |
1. TIMIT: https://arxiv.org/pdf/1506.07503v1.pdf | |
2. WSJ: https://arxiv.org/pdf/1508.04395.pdf (section 4.2 for details) | |
3. Task-loss-estimation: http://arxiv.org/pdf/1511.06456.pdf | |
""" | |
import six | |
import numpy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
just WIP unable to run fully | |
Referrences | |
1. TIMIT: https://arxiv.org/pdf/1506.07503v1.pdf | |
2. WSJ: https://arxiv.org/pdf/1508.04395.pdf (section 4.2 for details) | |
3. Task-loss-estimation: http://arxiv.org/pdf/1511.06456.pdf | |
4. source of 2&3: https://github.com/rizar/attention-lvcsr | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Batteries | |
let zip_string a b = | |
let of_enum = Text.enum % Text.of_string in | |
let ea = of_enum a in | |
let eb = of_enum b in | |
let append2 x y = Text.append_char x %> Text.append_char y in | |
let zip_text = Enum.fold2 append2 Text.empty in | |
zip_text ea eb |> Text.to_string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<spc> 0 | |
<noise> 1 | |
- 2 | |
. 3 | |
' 4 | |
A 5 | |
B 6 | |
C 7 | |
D 8 | |
E 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Template configuration for compiling mxnet | |
# | |
# If you want to change the configuration, please use the following | |
# steps. Assume you are on the root directory of mxnet. First copy the this | |
# file so that any local changes will be ignored by git | |
# | |
# $ cp make/config.mk . | |
# | |
# Next modify the according entries, and then compile by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <future> | |
#include <thread> | |
#include <map> | |
#include <vector> | |
#include <stdio.h> | |
const int N = 1 << 20; | |
__global__ void kernel(float *x, int n) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ nvcc ./stream_test.cu -o ./stream_legacy | |
$ nvvp ./stream_legacy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "share/atspre_define.hats" | |
#include "share/atspre_staload.hats" | |
(* README | |
original : | |
https://github.com/smistad/OpenCL-Getting-Started | |
compile with CUDA devices: | |
patscc -o test ./opencl_test.dats -L/usr/local/cuda/lib64 -lOpenCL |