Skip to content

Commit 4f3c60f

Browse files
authored
Fix broken example indentation in Keras io (keras-team#21807)
1 parent 45909f9 commit 4f3c60f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

keras/src/ops/numpy.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3927,10 +3927,10 @@ def isreal(x):
39273927
Output boolean tensor.
39283928
39293929
Example:
3930-
>>> from keras import ops
3931-
>>> x = ops.array([1+1j, 1+0j, 4.5, 3, 2, 2j], dtype="complex64")
3932-
>>> ops.isreal(x)
3933-
array([False, True, True, True, True, False])
3930+
>>> from keras import ops
3931+
>>> x = ops.array([1+1j, 1+0j, 4.5, 3, 2, 2j], dtype="complex64")
3932+
>>> ops.isreal(x)
3933+
array([False, True, True, True, True, False])
39343934
"""
39353935
if any_symbolic_tensors((x,)):
39363936
return Isreal().symbolic_call(x)
@@ -5509,10 +5509,10 @@ def unravel_index(indices, shape):
55095509
Tuple of arrays for each dimension with unraveled indices.
55105510
55115511
Example:
5512-
>>> indices = 5
5513-
>>> shape = (3, 3)
5514-
>>> unravel_index(indices, shape)
5515-
(1, 2) # 5 is at row 1, column 2 in a 3x3 array
5512+
>>> indices = 5
5513+
>>> shape = (3, 3)
5514+
>>> unravel_index(indices, shape)
5515+
(1, 2) # 5 is at row 1, column 2 in a 3x3 array
55165516
"""
55175517
if any_symbolic_tensors((indices,)):
55185518
return UnravelIndex(shape).symbolic_call(indices)

0 commit comments

Comments
 (0)