Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def lstm_layer(tparams, state_below, options, prefix='lstm', mask=None):
  2. nsteps = state_below.shape[0]
  3. if state_below.ndim == 3:
  4. n_samples = state_below.shape[1]
  5. else:
  6. n_samples = 1
  7.  
  8. assert mask is not None
  9. […]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement