Skip to content

Commit 6136b9b

Browse files
committed
tensordot explanation line
1 parent 5288076 commit 6136b9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/2025.12/migration_guide.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ return np.dot(c, b)
176176
The first step should be as simple as assigning `np` namespace to a dedicated
177177
namespace variable. The convention in the ecosystem is to name it `xp`. Then
178178
making sure that each method and function call is something that Array API
179-
supports is vital. `dot` is present in the NumPy's API but the standard doesn't
180-
support it. Let's use `tensordot` instead - both NumPy and the standard define it:
179+
supports is vital. `dot` is present in the NumPy's API but the standard
180+
doesn't support it. For the sake of simplicity let's assume both `c` and `b`
181+
are `ndim=2`, therefore we select `tensordot` instead - both NumPy and the
182+
standard define it:
181183

182184
```python
183185
import numpy as np

0 commit comments

Comments
 (0)