8000 Add note · data-apis/array-api-comparison@724bcc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 724bcc0

Browse files
committed
Add note
1 parent 8d0aaf0 commit 724bcc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signatures/searching/top_k.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jax.numpy.argpartition(a, kth, axis=-1) → ndarray
6868
npx.topk(data, axis=-1, k=1, ret_typ='indices', is_ascend=False, dtype='float32') → ndarray | [ndarray, ndarray]
6969
```
7070

71-
**Note**: whether a single ndarray or a list of ndarrays is returned is determined by `ret_type`.
71+
**Note**: whether a single ndarray or a list of ndarrays is returned is determined by `ret_type`. Differs from NumPy et al in providing a default value for `k`.
7272

7373
## PyTorch
7474

0 commit comments

Comments
 (0)
0