Skip to content

Instantly share code, notes, and snippets.

Avatar

Isaac Essel kaeflint

View GitHub Profile
@kaeflint
kaeflint / attention_decoder.py
Created Jul 9, 2018
Attention Decoder (TF & Keras)
View attention_decoder.py
import tensorflow as tf
from keras import backend as K
from keras import regularizers, constraints, initializers, activations
from keras.layers.recurrent import Recurrent, _time_distributed_dense
from keras.engine import InputSpec
tfPrint = lambda d, T: tf.Print(input_=T, data=[T, tf.shape(T)], message=d)
class AttentionDecoder(Recurrent):
@kaeflint
kaeflint / live_loss_plot_keras.ipynb
Created Feb 10, 2018 — forked from stared/live_loss_plot_keras.ipynb
Live loss plot for training models in Keras
View live_loss_plot_keras.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.