'TensorFlow - extract result from output

Feeling a little bit lost, lol!

So my tflite model is outputting:

dict({"are_you_man": bool})

My understanding is that Python dict is hashmap for Java/Kotlin.

fun getResults() {
    val byteBuffer = ...
    val output = HashMap<String, Boolean>()

    interpreter?.run(byteBuffer, output) //DataType error: cannot resolve DataType of [Lkotlin.jvm.internal.BooleanCompanionObject;

    Timber.e("FETCH: $output")
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source