Hi,
I am looking for a ‘good’ way to transform matrix of indexes to a onehot matrix (line by line). For example,
Transforming[[1,3],[2,4]] to [[0,1,0,1,0],[0,0,1,0,1]]
Any idea ? Is there a way for example to extend index_fill_ to take into account 2D tensors instead of 1D tensor ?