Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. class Encoder(tf.keras.layers.Layer):
  2. def __init__(self, intermediate_dim):
  3. super(Encoder, self).__init__()
  4. self.hidden_layer = tf.keras.layers.Dense(units=intermediate_dim, activation=tf.nn.relu)
  5. self.output_layer = tf.keras.layers.Dense(units=intermediate_dim, activation=tf.nn.relu)
  6.  
  7. def call(self, input_features):
  8. activation = self.hidden_layer(input_features)
  9. return self.output_layer(activation)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement