predictRaw

fun predictRaw(inputData: FloatArray): Map<String, Any>

Returns list of multidimensional arrays with data from model outputs.

NOTE: This operation can be quite slow for high dimensional tensors, use predictRaw with custom output processing for better performance.

fun <R> predictRaw(inputData: FloatArray, extractResult: (<ERROR CLASS>) -> R): R

Runs prediction on a given inputData and calls extractResult function to process output.

See also