We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec5131 commit deb64a0Copy full SHA for deb64a0
src/array_api_extra/_lib/_funcs.py
@@ -392,7 +392,7 @@ def one_hot(
392
# specification.
393
msg = "x must have a concrete size."
394
raise TypeError(msg)
395
- # TODO: Benchmark whether this is faster on the Numpy backend:
+ # TODO: Benchmark whether this is faster on the NumPy backend:
396
# x_flattened = xp.reshape(x, (-1,))
397
# out = xp.zeros((x.size, num_classes), dtype=dtype, device=_compat.device(x))
398
# out = at(out)[xp.arange(x_size), x_flattened].set(1)
0 commit comments