introduction to pytorch in [ ]torch argmax(adim= out[ ]tensor([ ]in [ ]torch argmin(adim= out[ ]tensor([ ]in [ ]torch argmin(adim= out[ ]tensor([ ]similarlythe argsort functionillustrated in listing - gives the indices of sorted values along given dimension listing - extracting the indices of sorted values of tensor in [ ] torch rand( , in [ ] out[ ]tensor([[ ][ ][ ]]in [ ] shape out[ ]torch size([ ]in [ ]torch argsort(adim= out[ ]tensor([[ ][ ][ ]]in [ ]torch argsort(adim= out[ ]tensor([[ ][ ][ ]]