I
- the type of the input objectpublic interface PreProcessor<I>
Modifier and Type | Method and Description |
---|---|
NDList |
processInput(TranslatorContext ctx,
I input)
Processes the input and converts it to NDList.
|
NDList 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