Skip to content

Commit 101119f

Browse files
authored
doc: ops.slice (#19843)
1 parent 1c60668 commit 101119f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/src/ops/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def slice(inputs, start_indices, shape):
254254
inputs = np.zeros((5, 5))
255255
start_indices = np.array([3, 3])
256256
shape = np.array([2, 2])
257-
inputs = keras.ops.slice(inputs, start_indices, updates)
257+
inputs = keras.ops.slice(inputs, start_indices, shape)
258258
```
259259
260260
Args:

0 commit comments

Comments
 (0)