-
Notifications
You must be signed in to change notification settings - Fork 161
The method 'UnmodifiableUint8ListView' isn't defined for the class 'Tensor'. #232
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
Comments
I have a temporary fix until it is fixed in the package. Change the package locally in your pub-cache.
That worked for me :) |
Thanks bro! |
@ptgms I have shared your response on stack : https://stackoverflow.com/questions/78789213/the-method-unmodifiableuint8listview-isnt-defined-for-the-class-tensor/78842046#78842046 |
Thank you very much! Do you know how to use tflite_flutter_helper with this version of tflite_flutter? It seems like this helper library might be deprecated, but it was very useful for image processing. |
Commit abac02b seems to fix this, only a new version of this package is needed. |
The error was resolved in |
Thanks everyone for the answers, this will be closed now. |
I am unable to bump from 0.9.5 because of dependency conflicts. The temporary change did not work as is... throwing: Error: The getter 'tfliteBinding' isn't defined for the class 'Tensor'. I had to remove the /// Underlying data buffer as bytes.
Uint8List get data {
final data = cast<Uint8>(tfLiteTensorData(_tensor));
return data.asTypedList(tfLiteTensorByteSize(_tensor)).asUnmodifiableView();
} |
Uh oh!
There was an error while loading. Please reload this page.
Im using tflite_flutter-0.10.4 but UnmodifiableUint8ListView was deprecated from typed_data some while ago:

https://api.dart.dev/stable/2.13.4/dart-typed_data/dart-typed_data-library.html
When i try to run my code in android i get this:
any fix?
The text was updated successfully, but these errors were encountered: