This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |