We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce15fd commit 2e61687Copy full SHA for 2e61687
senti/utils/numpy_.py
@@ -28,5 +28,5 @@ def clippad(array, width, mode='constant', **kwargs):
28
if n > width:
29
return array[:width]
30
elif n < width:
31
- return np.pad(array, width - n, mode=mode, **kwargs)
+ return np.pad(array, (0, width - n), mode=mode, **kwargs)
32
return array
0 commit comments