Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng-da committed Aug 7, 2018
1 parent debfba5 commit cf356c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/mxnet/gluon/contrib/rnn/rnn_cell.py
Expand Up @@ -410,9 +410,7 @@ def unroll(cell, inputs, begin_state, drop_inputs=0, drop_outputs=0,
inputs, axis, F, _ = _contrib_format_sequence(inputs, layout)
if axis != 0:
axes = list(range(len(layout)))
tmp = axes[0]
axes[0] = axes[axis]
axes[axis] = tmp
axes[0], axes[axis] = axes[axis], axes[0]
inputs = F.transpose(inputs, axes=axes)
states = begin_state

Expand Down

0 comments on commit cf356c2

Please sign in to comment.