Hi,
[:2::2] is not a valid indexing syntax in python.
And just like for a regular python list, you cannot do what you want with just indexing.
You can either take the slices by hand and torch.cat() then to get the final result.
Or generate the indices you want to keep and use torch.index_select or torch.gather to get the values.