Package ai.djl.serving.wlm
Interface JobFunction<I,O>
- Type Parameters:
I- the job input typeO- the job output type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function describing the action to take in a
Job.-
Method Summary
-
Method Details
-
apply
Applies this function.- Parameters:
inputs- the batch of inputs to run- Returns:
- the batch of results
- Throws:
ai.djl.translate.TranslateException- if it fails to run
-