Categories
Misc

Error during LoadArray in Tensorflow LITE

Hi

I have the following kotlin code:

val mydataarray = Array(100) { FloatArray(200) } set_values_for_mydataarray(mydataarray) val inputFeature0 = TensorBuffer.createFixedSize(intArrayOf(1, 100, 200), DataType.FLOAT32) inputFeature0.loadArray(mydataarray) 

loadArray(mydataarray) is returning this error:

None of the following functions can be called with the arguments supplied:

public open fun loadArray(p0: FloatArray)

I suppose the shape of mydataarray is wrong.

Do you know how it has to be shaped?

Or do you think the problem is another?

Thanks

submitted by /u/i_cook_bits
[visit reddit] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *