tensorflow / flutter-tflite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output object shape mismatch, interpreter returned output of shape: [1, 1]

fahriamura opened this issue · comments

I had error when do text classification it say
E/flutter (19178): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Output object shape mismatch, interpreter returned output of shape: [1, 1] while shape of output provided as argument in run is: [1, 2]

my output shape is
I/flutter (19178): Output shape: [1, 1], type: float32
my input shape is
I/flutter (19178): Input shape: [1, 100], type: float32