Skip to content

Instantly share code, notes, and snippets.

@unixpickle
Created March 11, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unixpickle/0345631e56596c729c299e8e64a44b45 to your computer and use it in GitHub Desktop.
Save unixpickle/0345631e56596c729c299e8e64a44b45 to your computer and use it in GitHub Desktop.
HashNet
#!/bin/bash
binarize() {
xxd -b | sed -e 's/ .*//g' | sed -e 's/.*://g' | tr $'\n' ' ' |
sed -e 's/\(.\)/ \1/g'
}
while true
do
path=$(mktemp -t hashgen)
dd if=/dev/random "of=$path" bs=6 count=1 2>/dev/null
cat "$path" | binarize
cat "$path" | md5 | xxd -r -p | binarize
rm "$path"
done
Input(w=8, h=6, d=1)
FC(out=512)
Tanh
FC(out=512)
Tanh
FC(out=512)
Tanh
FC(out=128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment