predict

open override fun predict(inputData: FloatArray): Int
fun predict(inputData: FloatArray, inputTensorName: String, outputTensorName: String): Int

Predicts the class of inputData.

Return

Predicted class index.

Parameters

inputData

The single example with unknown label.

inputTensorName

The name of input tensor.

outputTensorName

The name of output tensor.