Takes LongTensor with index values of shape (*)
and returns a tensor
of shape (*, num_classes)
that have zeros everywhere except where the
index of last dimension matches the corresponding value of the input tensor,
in which case it will be 1.
Takes LongTensor with index values of shape (*)
and returns a tensor
of shape (*, num_classes)
that have zeros everywhere except where the
index of last dimension matches the corresponding value of the input tensor,
in which case it will be 1.