This file contains 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 | |
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): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.