Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
self.learning_rate = tf.constant(0.005, tf.float32)
self.num_timesteps = num_timesteps
self.batch_size = batch_size
self.num_of_epochs = num_of_epochs
self._midi_coordinator = midi_coordinator
# Define TF variables and placeholders
self._visible_dim = 2*(midi_coordinator._upperBound - midi_coordinator._lowerBound)*num_timesteps
self._hidden_dim = 50
self._input = tf.placeholder(tf.float32, [None, self._visible_dim], name="input")
self._weights = tf.Variable(tf.random_normal([self._visible_dim, self._hidden_dim], 0.01), name="weights")
self._hidden_bias = tf.Variable(tf.zeros([1, self._hidden_dim], tf.float32, name="hidden_bias"))
self._visible_bias = tf.Variable(tf.zeros([1, self._visible_dim], tf.float32, name="visible_bias"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment