Solved by albanD in post #2 
              
              
                Hi, 
It is setting particular values of a tensor at the provided indices. The value that you set can either be always the same or provided by another tensor wich is the same size as the indices tensor. 
For example, if you want to do a one hot encoding of a 1D tensor of labels, you can start with a …