8000 Fix tensordot broadcasting rules (#419) · data-apis/array-api@c5808f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5808f2

Browse files
authored
Fix tensordot broadcasting rules (#419)
* Fix tensordot broadcasting rules The noncontracted axes do not broadcast together and do not need to be broadcast compatible. * Replace a "should" with "must"
1 parent 77b66c1 commit c5808f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/signatures/linear_algebra_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def tensordot(x1: array, x2: array, /, *, axes: Union[int, Tuple[Sequence[int],
6161
x1: array
6262
first input array. Should have a numeric data type.
6363
x2: array
64-
second input array. Must be compatible with ``x1`` for all non-contracted axes (see :ref:`broadcasting`). Should have a numeric data type.
< 4DC8 /code>
64+
second input array. Should have a numeric data type. Corresponding contracted axes of ``x1`` and ``x2`` must be equal.
6565
6666
.. note::
6767
Contracted axes (dimensions) must not be broadcasted.

0 commit comments

Comments
 (0)
0