start new:
tmux
start new with session name:
tmux new -s myname
| """adapted from https://github.com/OlavHN/bnlstm to store separate population statistics per state""" | |
| import tensorflow as tf, numpy as np | |
| RNNCell = tf.nn.rnn_cell.RNNCell | |
| class BNLSTMCell(RNNCell): | |
| '''Batch normalized LSTM as described in arxiv.org/abs/1603.09025''' | |
| def __init__(self, num_units, is_training_tensor, max_bn_steps, initial_scale=0.1, activation=tf.tanh, decay=0.95): | |
| """ | |
| * max bn steps is the maximum number of steps for which to store separate population stats | |
| """ |
| """Simple example on how to log scalars and images to tensorboard without tensor ops. | |
| License: BSD License 2.0 | |
| """ | |
| __author__ = "Michael Gygli" | |
| import tensorflow as tf | |
| from StringIO import StringIO | |
| import matplotlib.pyplot as plt | |
| import numpy as np |
| \documentclass{article} | |
| % General document formatting | |
| \usepackage[margin=0.7in]{geometry} | |
| \usepackage[parfill]{parskip} | |
| \usepackage[utf8]{inputenc} | |
| % Related to math | |
| \usepackage{amsmath,amssymb,amsfonts,amsthm} | |
| \begin{document} |