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

predictAsync does not exist (React Native Expo) #7563

Closed
sickopickle opened this issue Apr 8, 2023 · 4 comments
Closed

predictAsync does not exist (React Native Expo) #7563

sickopickle opened this issue Apr 8, 2023 · 4 comments

Comments

@sickopickle
Copy link

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): I am merely trying to use predictAsync.
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: iPad Air 5th gen (I think, maybe 4th)
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version (use command below): 3.11.0
  • Browser version:
  • Tensorflow.js Converter Version: 3.18.0 (Dependency versions: keras 2.6.0 tensorflow 2.6.2)

Describe the current behavior

When I call model.predictAsync(input) in a React Native app, it says that model.predictAsync is not a function/undefined. Using execute, predict, and executeAsync work fine in place of predictAsync.

Describe the expected behavior

It should actually work because it is documented. I'm pretty sure I have the correct version required to use it >= 3.0.0

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/CodePen/any notebook.

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

@sickopickle sickopickle added the type:bug Something isn't working label Apr 8, 2023
@gaikwadrahul8 gaikwadrahul8 self-assigned this Apr 10, 2023
@gaikwadrahul8
Copy link
Contributor

gaikwadrahul8 commented Apr 10, 2023

Hi, @sickopickle

Apologize for the delayed response and I see in your issue template, you mentioned tensorflow.js version 3.11 if possible could you please try to use latest version of tensorflow.js 4.4.0 ? it may be react native and expo versions issue so May I know which version of react-native and expo are you using currently ? Please check this comment and if you're using latest version of react-native and expo then could you please give it try with downgrading the version to previous stable version ?

If issue still persists please let us know with error log and if possible In order to expedite the trouble-shooting process, please provide a code snippet/codepen/Github repo link to reproduce the issue reported here. 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

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

2 participants