-
Notifications
You must be signed in to change notification settings - Fork 101
Simple custom model is not working on android #164
Comments
@nh9k, what The model and the JavaScript code provided work on both Android (Samsung Galaxy S22) and iOS (iPhone Xs) and with the PlayTorch app (which uses PlayTorch Snack url: https://snack.playtorch.dev/@raedle/post-cd-test?supportedPlatforms=my-device |
@raedle, thank you very much for your testing 😃, but i am still getting same errors on my android |
@nh9k, what a bummer. Is this also happening with the PlayTorch Snack provided in my previous response? |
I am not familiar with the expo, but I am trying it with my galaxy S9+. |
@raedle, this Playtorch Snack is working fine on my galaxy S9+! |
@nh9k, the code examples that you provided work. I can probably look into it again, but it will require a minimal and constantly reproducible example (e.g., via GitHub repo) |
@raedle, thank you so much, i figure out what is the problem! 😢😢😢 |
I copied and pasted your Python PostCD model code in Google Colab and exported the https://colab.research.google.com/drive/1MPM9v6TM_q7R4SqhMSzXwCCQYNqWk63F |
Current colab pytorch version is 1.12.1, but my pytorch version is 1.10.0. |
@nh9k an older PyTorch version could indeed be the cause. Can you try PyTorch |
@raedle, I made a mistake. My PyTorch version was |
Tutorial Select
Prepare Custom Model
Feedback
Hello, always thanks for contributions!
This is somewhat custom problem i think, so that i don't know that i can question.
My simple tensor manipulation model is not working on my react-native app, but it is working successfully at my python code.
My adb logcat of several code trials sometimes got output
memory consumptions problem
or
my java script code sometimes got output
[Error: Exception in HostFunction: vector]
orstd::bad_alloc
or
just app crashes.
Can i get some help?..
Model export at python code:
Python output:
This is app code:
Node.js output:
-> App crashes
The text was updated successfully, but these errors were encountered: