am15h / tflite_flutter_helper

TensorFlow Lite Flutter Helper Library
https://pub.dev/packages/tflite_flutter_helper
Apache License 2.0
160 stars 296 forks source link

TensorBuffer.createFixedSize is not supported. #79

Open HarshKevadiya2403 opened 2 months ago

HarshKevadiya2403 commented 2 months ago

Error: Member not found: 'float32'. final output = TensorBuffer.createFixedSize([1, 128], TfLiteType.float32);

I'm using the tflite_flutter_helper_plus package to work with TensorFlow Lite models in my Flutter app. When I try to create a TensorBuffer using TensorBuffer.createFixedSize([1, 160, 160, 3], TfLiteType.float32), I get the following error: "Error: Unsupported feature: TensorBuffer.createFixedSize is not supported."

I have the tflite_flutter package installed and have verified that I'm using the latest version of both packages.

image

charlieforward9 commented 1 month ago

TfLiteTypes are now called TensorType. I have this fix on my fork.

tflite_flutter_helper:
  git:
    url: https://github.com/VisualPT/tflite_flutter_helper.git
    ref: 627abb6f41e2fa4949ccf64226009c06e7021308