From 2eaa7657cfc1470eb7b3b28fe3b3fc6c053b0448 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 10 Nov 2021 10:25:16 +0000 Subject: [PATCH 1/2] Fix incorrect output shape behaviour in `expand_dims()` --- spec/API_specification/manipulation_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/manipulation_functions.md b/spec/API_specification/manipulation_functions.md index 1f140bcb0..66536a82b 100644 --- a/spec/API_specification/manipulation_functions.md +++ b/spec/API_specification/manipulation_functions.md @@ -57,7 +57,7 @@ Expands the shape of an array by inserting a new axis (dimension) of size one at - **out**: _<array>_ - - an expanded output array having the same data type and shape as `x`. + - an expanded output array having the same data type as `x`. (function-flip)= ### flip(x, /, *, axis=None) From 62fd97e6d1ae1ecc0b611a4344bae37b7c6ab909 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 10 Nov 2021 10:26:36 +0000 Subject: [PATCH 2/2] Keep `expand_dims()` signature in-line with `squeeze()` --- spec/API_specification/manipulation_functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/API_specification/manipulation_functions.md b/spec/API_specification/manipulation_functions.md index 66536a82b..36f59b4c7 100644 --- a/spec/API_specification/manipulation_functions.md +++ b/spec/API_specification/manipulation_functions.md @@ -39,7 +39,7 @@ Joins a sequence of arrays along an existing axis. ``` (function-expand_dims)= -### expand_dims(x, /, *, axis) +### expand_dims(x, /, axis) Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by `axis`.