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
| #!/usr/bin/python3 | |
| import sys | |
| from string import Template | |
| # fun defaults | |
| M = 4 | |
| N = 3 | |
| K = 2 |
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
| #!/usr/bin/python3 | |
| import sys | |
| import os | |
| import time | |
| import re | |
| import tempfile | |
| import subprocess | |
| import argparse | |
| import numpy as np | |
| from string import Template |
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 <cstdlib> | |
| #include <iostream> | |
| #define FORCE_INLINE __attribute__((always_inline)) | |
| #define MASK_TRUE 0xffffffff | |
| // our machine's vector length. This #defins is a bit naive in that the | |
| // vector length would be a function of the datatype (e.g. on AVX512, | |
| // you'd have 16 floats but only 8 double's | |
| #define VLEN 16 |
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
| #!bin/python | |
| # main YouTube I learned from: https://www.youtube.com/watch?v=g2BRIuln4uc | |
| # down the rabbit hole from: https://jalammar.github.io/visualizing-neural-machine-translation-mechanics-of-seq2seq-models-with-attention/ | |
| import os | |
| import sys | |
| import numpy as np | |
| import pandas as pd |