Skip to content

Commit a50fdf8

Browse files
authored
Addressed variable names mismatch in example code in softmax.py (#20377)
This PR is raised to address the variable names mismatch in the example code.
1 parent 27bcdce commit a50fdf8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

keras/src/layers/activations/softmax.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ class Softmax(Layer):
2222
```
2323
2424
Example:
25-
>>>softmax_layer = keras.layers.activations.Softmax()
26-
>>>input = np.array([1.0, 2.0, 1.0])
27-
>>>result = softmax_layer(input)
25+
>>> softmax_layer = keras.layers.activations.Softmax()
26+
>>> input = np.array([1.0, 2.0, 1.0])
27+
>>> result = softmax_layer(input)
28+
>>> result
2829
[0.21194157, 0.5761169, 0.21194157]
2930
3031

0 commit comments

Comments
 (0)