Skip to content

Instantly share code, notes, and snippets.

@CharlieCodex
CharlieCodex / app.js
Last active April 8, 2019 21:14
Maple Hill Cemetery Snippet
ctrl.readURL = function(loc){
if(loc.search.substring(1)){
var data = angular.fromJson(decodeURI(loc.search.substring(1)));
ctrl.lot = data.lot;
ctrl.burial = data.burial;
ctrl.view = 'search';
// ... move over props ... //
} else {
// ... set some defaults ... //
ctrl.burial = "";
import tensorflow as tf
def self_feeding_rnn(cell, seqlen, Hin, Xin, processing=tf.identity):
'''Unroll cell by feeding output (hidden_state) of cell back into in as input.
Outputs are passed through `processing`. It is up to the caller to ensure that the processed
outputs have suitable shape to be input.'''
veclen = tf.shape(Xin)[-1]
# this will grow from [ BATCHSIZE, 0, VELCEN ] to [ BATCHSIZE, SEQLEN, VECLEN ]
buffer = tf.TensorArray(dtype=tf.float32, size=seqlen)