Package ai.djl.engine.rpc
Interface TypeConverter<I,O>
- Type Parameters:
I- the target input typeO- the target output type
public interface TypeConverter<I,O>
A {code TypeConverter} interface defines how data type is converted to Input/Output.
-
Method Summary
-
Method Details
-
getSupportedType
Returns the supported type.- Returns:
- the supported type
-
toInput
Convert the data type toInput.- Parameters:
in- the input data- Returns:
- the converted data
-
fromOutput
Convert theOutputto target data type.- Parameters:
out- the output data- Returns:
- the converted data
- Throws:
TranslateException
-