I - the type of the input objectpublic interface PreProcessor<I>
| Modifier and Type | Method and Description |
|---|---|
default Pipeline |
getPipeline()
Gets the
Pipeline applied to the input. |
NDList |
processInput(TranslatorContext ctx,
I input)
Processes the input and converts it to NDList.
|
default Pipeline getPipeline()
Pipeline applied to the input.PipelineNDList processInput(TranslatorContext ctx, I input) throws java.lang.Exception
ctx - the toolkit for creating the input NDArrayinput - the input objectNDList after pre-processingjava.lang.Exception - if an error occurs during processing input