Package ai.djl.serving.workflow.function
Class FunctionsApply
java.lang.Object
ai.djl.serving.workflow.function.WorkflowFunction
ai.djl.serving.workflow.function.FunctionsApply
- All Implemented Interfaces:
AutoCloseable
Workflow function "functionsApply" accepts a list of functions and an input and applies each
function to the input.
It returns a list of the results of applying each function to the input.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrun
(Workflow.WorkflowExecutor executor, List<Workflow.WorkflowArgument> args) The lambda function that is run.Methods inherited from class ai.djl.serving.workflow.function.WorkflowFunction
close, evaluateArgs, prepare
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
FunctionsApply
public FunctionsApply()
-
-
Method Details
-
run
public CompletableFuture<WorkflowExpression.Item> run(Workflow.WorkflowExecutor executor, List<Workflow.WorkflowArgument> args) The lambda function that is run.- Specified by:
run
in classWorkflowFunction
- Parameters:
executor
- an executor that can be used to run expressions or modelsargs
- the list of function arguments- Returns:
- a future containing the input
-