Can Slicing and indicing be used in forward function?

I have a variable a in the forward function, Can I used a[:,1,2,0] to get value to give later operation as input?Is there backward function for Tensor slicing and indicing? Thanks too much.

I mean indice like numpy

Slicing and indexing are fully supported by autograd. If you find that they are not, please file a bug report.

2 Likes