latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.one_hot
- tensorplay.nn.functional.one_hot(tensor, num_classes=-1) LongTensor[source]
Returns long tensor shaped
tensor.shape + (num_classes,)with a 1 at
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

