File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,26 @@ def execute(
192192 start : int = 0 ,
193193 end : int | None = None ,
194194 threading : bool = False ,
195- ):
195+ ) -> NdarrayOrTensor :
196+ """
197+ ``execute`` provides the implementation that Compose uses to execute a sequence
198+ of transforms. As well as being used by Compose, it can be used by subclasses of
199+ Compose and by code that doesn't have a Compose instance but needs to execute a
200+ sequence of transforms is if it were executed by Compose. For the most part, it
201+ is recommended to use Compose instances, however.
202+ Args:
203+ input_:
204+ transforms:
205+ map_items:
206+ unpack_items:
207+ log_stats:
208+ start:
209+ end:
210+ threading:
211+
212+ Returns:
213+
214+ """
196215 end_ = len (transforms ) if end is None else None
197216 if start > end_ :
198217 raise ValueError (f"'start' ({ start } )must be less than 'end' ({ end_ } )" )
You can’t perform that action at this time.
0 commit comments