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
"""A multiplicative cell wrapper as described in | |
'Multiplicative LSTM for Sequence Modeling' by Krause et al.""" | |
import tensorflow as tf | |
import math | |
from collections import namedtuple | |
from tensorflow.contrib.rnn import RNNCell | |
from tensorflow.python.ops.rnn_cell_impl import LSTMStateTuple | |
class MultiplicativeLSTMWrapper(RNNCell): |