Skip to content

Commit

Permalink
Unindent examples section
Browse files Browse the repository at this point in the history
  • Loading branch information
Frightera committed Jul 15, 2023
1 parent f586d7c commit 68ee8b9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions keras_core/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ def shape(x):
A tuple of integers or None values, indicating the shape of the input
tensor.
Examples:
>>> x = keras_core.zeros((8, 12))
>>> keras_core.ops.shape(x)
(8, 12)
Example:
>>> x = keras_core.zeros((8, 12))
>>> keras_core.ops.shape(x)
(8, 12)
"""

Expand All @@ -306,9 +306,9 @@ def cast(x, dtype):
Returns:
A tensor of the specified `dtype`.
Examples:
>>> x = keras_core.ops.arange(4)
>>> keras_core.ops.cast(x, "float32")
Example:
>>> x = keras_core.ops.arange(4)
>>> keras_core.ops.cast(x, "float32")
"""
dtype = backend.standardize_dtype(dtype)
Expand All @@ -329,9 +329,9 @@ def convert_to_tensor(x, dtype=None):
Returns:
A tensor of the specified `dtype`.
Examples:
>>> x = np.array([1, 2, 3])
>>> keras_core.ops.convert_to_tensor(x)
Example:
>>> x = np.array([1, 2, 3])
>>> keras_core.ops.convert_to_tensor(x)
"""

Expand Down

0 comments on commit 68ee8b9

Please sign in to comment.