Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions spikeforge_serve/pipeline_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,14 @@ def _node_input(
incoming: List[PipelineEdge],
results: Dict[str, Dict[str, Any]],
service: ServingService,
) -> Tuple[List[float], bool]:
"""Return the ``(frames, encoded)`` input for one node."""
) -> Tuple[List[Any], bool]:
"""Return the ``(frames, encoded)`` input for one node.

The first element is a list of *frames*, matching what ``frames_from``
yields and what ``ServingService.predict`` consumes. An upstream node
contributes exactly one frame, so its vector is wrapped rather than
spread.
"""
if not incoming:
return frames_from(ctx.request), encoded_flag(ctx.request)
edge = incoming[0]
Expand Down
Loading