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
Latest development documentation · Updated 2026-09-08. A documentation snapshot for package 1.0.0.dev20260909 is not available.
Returns long tensor shaped tensor.shape + (num_classes,) with a 1 at
Live status · packages · docs