rwth-i6 / pytorch-to-returnn

Make PyTorch code runnable within RETURNN
3 stars 6 forks source link

fix Unflatten out_returnn_axis_from_torch_axis #80

Closed vieting closed 2 years ago

vieting commented 2 years ago

The elif branch that I edited is supposed to be the case where i refers to a dim which outside (larger than) the unflattened dims. Equality should also be contained in this case.