Skip to content

Commit 7e0705a

Browse files
authored
Fix broken code block rendering in histogram documentation (#21555)
1 parent 6114a21 commit 7e0705a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

keras/src/ops/numpy.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7325,15 +7325,12 @@ def histogram(x, bins=10, range=None):
73257325
- A tensor representing the bin edges.
73267326
73277327
Example:
7328-
7329-
```
73307328
>>> input_tensor = np.random.rand(8)
73317329
>>> keras.ops.histogram(input_tensor)
73327330
(array([1, 1, 1, 0, 0, 1, 2, 1, 0, 1], dtype=int32),
73337331
array([0.0189519 , 0.10294958, 0.18694726, 0.27094494, 0.35494262,
73347332
0.43894029, 0.52293797, 0.60693565, 0.69093333, 0.77493101,
73357333
0.85892869]))
7336-
```
73377334
"""
73387335
if not isinstance(bins, int):
73397336
raise TypeError(

0 commit comments

Comments
 (0)