I built a tflite model for a very basic android app in kotlin, that accepts a float or double as input and yields double as output. The model is a NN. I don’t know how to give inputs to the interpreter. And I can’t find a good documentation about kotlin interpreter class.
var input = 3 // ??
var output = ?? // Do I need to declare an Array?
In the second case, I would like the input to be entered by the user into an editText field.
inputText = findViewById(R.id.editText)
input = (Int) inputText?.getText() // do I need to cast to an Int or Double?