rwth-i6 / pytorch-to-returnn

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

allow tuple as input to tensor.view and expand #19

Closed vieting closed 3 years ago

vieting commented 3 years ago

Currently it is possible to do something like x.view(1, -1) but in PyTorch you can also do x.view(some_shape) with some_shape=(1, -1).