Skip to content

Commit 12585d5

Browse files
dilumichcopybara-github
authored andcommitted
Update the cheatsheet for expand_to section.
PiperOrigin-RevId: 720340795 Change-Id: I6af296fa734016935631dc0e9e793685a7b52361
1 parent a4f4d15 commit 12585d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/cheatsheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,16 +1157,16 @@ c = kd.slice([[1], [2, 3]])
11571157
kd.expand_to(a, c)
11581158
# raises an exception
11591159
# which is equivalent to
1160-
kd.expand_to(a, c, last_ndim_to_implode=0)
1160+
kd.expand_to(a, c, ndim=0)
11611161

1162-
kd.expand_to(a, c, last_ndim_to_implode=1)
1162+
kd.expand_to(a, c, ndim=1)
11631163
# returns [[[1, 2]], [[3], [3]]]
11641164

1165-
kd.expand_to(a, c, last_ndim_to_implode=2)
1165+
kd.expand_to(a, c, ndim=2)
11661166
# returns [[[[1, 2], [3]]], [[[1, 2], [3]],
11671167
# [[1, 2], [3]]]]
11681168

1169-
kd.expand_to(a, c, last_ndim_to_implode=3)
1169+
kd.expand_to(a, c, ndim=3)
11701170
# raises an exception
11711171
```
11721172

0 commit comments

Comments
 (0)