Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serve] Add experimental pipeline docs #20292

Merged
merged 14 commits into from
Nov 17, 2021
Prev Previous commit
Next Next commit
polish
  • Loading branch information
simon-mo committed Nov 12, 2021
commit fd8ed5fa54cbc6df36a0d3008c0048588341d86e
5 changes: 4 additions & 1 deletion python/ray/serve/examples/doc/snippet_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def __call__(self, inp_tensor):
assert result["top_5_categories"] == [898, 412, 600, 731, 463]
# __preprocessing_pipeline_example_end__

# Cleanup resource
# __cleanup_example_start__
del sequential_pipeline
# __cleanup_example_end__


# __ensemble_pipeline_example_start__
Expand All @@ -108,3 +109,5 @@ def combine_output(*classifier_outputs):
assert result == [898, 412, 600, 731, 463, 899, 618, 733, 463, 600]

# __ensemble_pipeline_example_end__

del ensemble_pipeline