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 | |
| class Rnn(tf.Module): | |
| def __init__(self, features, n_in=5, n_hid=5, init_state=None, n_out=None): | |
| self._n_in = n_in | |
| self._n_hid = n_hid | |
| self._n_out = n_out | |
| self._init_state = init_state | |
| self._batch_size = 64 | 
  
    
      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
    
  
  
    
  | from __future__ import print_function | |
| import tensorflow as tf | |
| from tensorflow.contrib.layers import xavier_initializer | |
| import abc | |
| import six | |
| @six.add_metaclass(abc.ABCMeta) | |
| class BasicRnn(object): |