Skip to content

Instantly share code, notes, and snippets.

Avatar

scturtle

View GitHub Profile
@scturtle
scturtle / tf_lstm.py
Created Apr 12, 2017 — forked from siemanko/tf_lstm.py
Simple implementation of LSTM in Tensorflow in 50 lines (+ 130 lines of data generation and comments)
View tf_lstm.py
from __future__ import print_function
import numpy as np
import tensorflow as tf
import tensorflow.contrib.layers as layers
def as_bytes(num, final_size):
res = []
for _ in range(final_size):
res.append(num % 2)
num //= 2
View wechat2txt.py
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt
You can’t perform that action at this time.