OneHotΒΆ
One-hot encodes the given indices.
Abstract Signature:
OneHot(x: Tensor, num_classes: int)
Apple MLX
API:
βStrategy: Plugin (mlx_one_hot_shim)
One-hot encodes the given indices.
Abstract Signature:
OneHot(x: Tensor, num_classes: int)
β