You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
put the model file at src/app/models/ and input the ModelInfo in models/index.tsx
build and run the project
Fatal error: Index out of range happens
I'm enjoying to do real-time object detection on ios device because of great PyTorch live that you've been making.
I'm a beginner at Swift, so I don't know what maxIndex value= -1 indicates.
After changed maxIndex value -1 ⇨ 0, this error never happen.
So, I thought the value = 0 is right one.
Could you tell me whether the maxIndex value = -1 is correct and then the reason Maxindex = -1 is set, thanks in advance.
Expected Results
"Fatal error: Index out of range" doesn't happen
Code example, screenshot, or link to repository
The text was updated successfully, but these errors were encountered:
Summary:
#48#48
The unpacker is trying to return the index of the maximum element, but iterating from -1. It will throw an error if the 0-index element happened to be the largest.
Reviewed By: chrisklaiber
Differential Revision: D34833676
fbshipit-source-id: fefd2f1c6144de9fcf0bb7b167e8a09280de6f28
Version
0.1.3, and also latest commits
Problem Area
react-native-pytorch-core (core package)
Steps to Reproduce
I'm enjoying to do real-time object detection on ios device because of great PyTorch live that you've been making.
I'm a beginner at Swift, so I don't know what maxIndex value= -1 indicates.
After changed maxIndex value -1 ⇨ 0, this error never happen.
So, I thought the value = 0 is right one.
Could you tell me whether the maxIndex value = -1 is correct and then the reason Maxindex = -1 is set, thanks in advance.
Expected Results
"Fatal error: Index out of range" doesn't happen
Code example, screenshot, or link to repository
The text was updated successfully, but these errors were encountered: