How to flip a tensor left right?

My question is similar to https://github.com/pytorch/pytorch/issues/229.

Currently I’m implementing a novel ‘Convolution layer’ which generate half of the output feature maps with
its original weights and biases, and the other half of the output feature maps is calculated with left right mirror
of the original filters.

Is there convenient way to flip a parameter tensor with auto-grad suppored?

2 Likes

Coming soon: https://github.com/pytorch/pytorch/pull/6867

1 Like

I will wait for that merged.

1 Like

https://pytorch.org/docs/stable/torch.html?highlight=flip#torch.flip

2 Likes