Skip to content

Instantly share code, notes, and snippets.

View aidangomez's full-sized avatar

Aidan Gomez aidangomez

View GitHub Profile
@aidangomez
aidangomez / 1m-primes.txt
Created April 1, 2016 23:37
First One Million Prime Numbers
This file has been truncated, but you can view the full file.
2
3
5
7
11
13
17
19
23
29
@aidangomez
aidangomez / rnn.py
Created March 1, 2016 20:48
A modified version of tensorflow/python/ops/rnn,py
def cw_rnn(cells, strides, inputs, initial_states=None, dtype=None,
sequence_length=None, scope=None):
"""Creates a recurrent neural network specified by RNNCell "cell".
Args:
cells: C instances of RNNCells.
inputs: A length C list of lists, each with length[c] = T // strides[c], containing tensors of shape
[batch_size, cell.input_size].
strides: C ints.
initial_states: (optional) An initial state for the RNN. This must be
a tensor of appropriate type and shape [batch_size x cell.state_size].