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

Im facing the same issue with tfjs-core 3.18.0 when using it with reactjs. None of the above response have resolved the issue. #6506

Closed
pistolla opened this issue Jun 8, 2022 · 7 comments

Comments

@pistolla
Copy link

pistolla commented Jun 8, 2022

Im facing the same issue with "@tensorflow/tfjs-core": "^3.18.0" when using it with reactjs. None of the above response have resolved the issue.

Originally posted by @pistolla in #4296 (comment)

@rthadur
Copy link
Contributor

rthadur commented Jun 8, 2022

These are the working examples https://github.com/tensorflow/tfjs-examples/tree/master/react-native/image-classification for react native , can you try running them ? Thank you

@rthadur rthadur self-assigned this Jun 8, 2022
@rthadur rthadur added comp:react-native type:support user support questions labels Jun 8, 2022
@pistolla
Copy link
Author

Thanks for the reply. The issue im facing is not exactly related to reactjs framework. I have issue with weakmap used in tfjs and tfjs-core. They are inaccessible, in that, even using browser console i can dump the content of weakmap _tfengine.state.tensorInfo but when i try to reference a specific key the response is undefined. I'm wondering if this is a case of browser implementation of the weakmap or what is wrong? check the screenshots i shared in the referenced issue. I don't understand. Take a few minutes and check them. Thanks.

@rthadur
Copy link
Contributor

rthadur commented Jun 13, 2022

is it possible to share reproducible code either codepen or git repo ? Thank you

@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you.

@google-ml-butler
Copy link

Closing as stale. Please @mention us if this needs more attention.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@rthadur rthadur changed the title Im facing the same issue with "@tensorflow/tfjs-core": "^3.18.0" when using it with reactjs. None of the above response have resolved the issue. Im facing the same issue with tfjs-core 3.18.0 when using it with reactjs. None of the above response have resolved the issue. Sep 30, 2022
@vanessaZh
Copy link

Thanks for the reply. The issue im facing is not exactly related to reactjs framework. I have issue with weakmap used in tfjs and tfjs-core. They are inaccessible, in that, even using browser console i can dump the content of weakmap _tfengine.state.tensorInfo but when i try to reference a specific key the response is undefined. I'm wondering if this is a case of browser implementation of the weakmap or what is wrong? check the screenshots i shared in the referenced issue. I don't understand. Take a few minutes and check them. Thanks.

i found vue3 is not incompatible and will cause the same problem. the error seems to be caused by the fact that Vue3 wrapped my model attribute in a Proxy object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants