We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5acb937 commit ca9ae69Copy full SHA for ca9ae69
1 file changed
deepmd/dpmodel/array_api.py
@@ -60,7 +60,7 @@ def xp_take_along_axis(arr, indices, axis):
60
61
shape = list(arr.shape)
62
shape.pop(-1)
63
- shape = [*shape, n]
+ shape = (*shape, n)
64
65
arr = xp.reshape(arr, (-1,))
66
if n != 0:
0 commit comments