Skip to content

Commit

Permalink
ivy Container Example
Browse files Browse the repository at this point in the history
  • Loading branch information
kamlishgoswami committed Oct 9, 2023
1 parent d7cf1a5 commit 8002d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ivy/data_classes/container/experimental/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1283,14 +1283,14 @@ def unsorted_segment_mean(
>>> num_segments = 1
>>> result = x.unsorted_segment_mean(segment_ids, num_segments)
>>> result
ivy.array([2.5])
ivy.Container([2.5])
>>> y = ivy.Container([1.0, 2.0, 3.0, 4.0, 5.0, 6.0])
>>> segment_ids = ivy.Container([0, 0, 1, 1, 2, 2])
>>> num_segments = 3
>>> result = y.unsorted_segment_mean(segment_ids, num_segments)
>>> result
ivy.array([1.5, 3.5, 5.5])
ivy.Container([1.5, 3.5, 5.5])
"""
return self.static_unsorted_segment_mean(
self,
Expand Down

0 comments on commit 8002d7c

Please sign in to comment.