Skip to content

Commit

Permalink
Dimensions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Pointon committed Oct 21, 2017
1 parent 616f5f3 commit a4e454f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LSTM_RNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def backward_pass(self, inputs, targets, first_prev_h, first_prev_c):
'in_h': init_dict_like(self.vars['in_h']),
'h_h': init_dict_like(self.vars['h_h']),
'h_out': np.zeros_like(self.vars['h_out']),
'bias': np.zeros(OUT_DIM)
'bias': np.zeros(self.out_dim)
}

# Initialising Adagrad memory variables
M_vars = {
'in_h': init_dict_like(self.vars['in_h']),
'h_h': init_dict_like(self.vars['h_h']),
'h_out': np.zeros_like(self.vars['h_out']),
'bias': np.zeros(OUT_DIM)
'bias': np.zeros(self.out_dim)
}

# Backward propagation
Expand Down

0 comments on commit a4e454f

Please sign in to comment.