Skip to content

Commit

Permalink
Add docstring to _iteration_length (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-chu authored and j316chuck committed Mar 29, 2024
1 parent 541d12c commit d05c40d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions composer/core/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ def _iteration_length(self):

@_iteration_length.setter
def _iteration_length(self, iteration_length: Optional[Union[str, Time[int]]]):
"""Sets the length of an iteration.
An iteration must be defined as multiple epochs. See composer/core/event.py.
"""
if iteration_length is None:
self.__iteration_length = None
return
Expand Down

0 comments on commit d05c40d

Please sign in to comment.