Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TensorBuffer.createFixedSize is not supported. #79

Open
HarshKevadiya2403 opened this issue Sep 4, 2024 · 1 comment · May be fixed by #80
Open

TensorBuffer.createFixedSize is not supported. #79

HarshKevadiya2403 opened this issue Sep 4, 2024 · 1 comment · May be fixed by #80

Comments

@HarshKevadiya2403
Copy link

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
Copy link

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

@charlieforward9 charlieforward9 linked a pull request Oct 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants