Skip to content

Commit 0b9564d

Browse files
committed
fix: correct type in ivy.experimental.manipulation fill_diagonal
1 parent d5f8048 commit 0b9564d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ivy/functional/ivy/experimental/manipulation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ def fill_diagonal(
22032203
steps = ivy.arange(0, end, step)
22042204
if isinstance(v, (ivy.Array, ivy.NativeArray)):
22052205
v = ivy.reshape(v, (-1,)).astype(a.dtype)
2206-
v = ivy.tile(v, int(ivy.ceil(len(steps) / v.shape[0])))[: len(steps)]
2206+
v = ivy.tile(v, (int(ivy.ceil(len(steps) / v.shape[0])),))[: len(steps)]
22072207
else:
22082208
v = ivy.repeat(v, len(steps))
22092209
ivy.scatter_flat(steps, v, size=a.shape[0], reduction="replace", out=a)

0 commit comments

Comments
 (0)