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
Remove false positive error message in the executor_runner (#7170)
### Summary
There are false positive error messages from the type check that
attempts to verify several allowed types at once, but uses one function
call per type leading to some of them not passing the check and emitting
an error message.
```
> ./executor_runner --model-path ~/model.pte
...
I 00:00:00.519929 executorch:executor_runner.cpp:91] Using method forward
I 00:00:00.519931 executorch:executor_runner.cpp:138] Setting up planned buffer 0, size 10753549312.
I 00:00:01.212589 executorch:executor_runner.cpp:161] Method loaded.
I 00:00:01.213544 executorch:executor_runner.cpp:171] Inputs prepared.
E 00:00:02.320414 executorch:tensor_util.h:481] Expected to find Float type, but tensor has type Half
E 00:00:02.320521 executorch:tensor_util.h:487] Check failed (t.scalar_type() == dtype): Expected to find Float type, but tensor has type Half
...
I 00:00:24.911098 executorch:executor_runner.cpp:180] Model executed successfully.
...
```
Note the repeated lines
> Check failed (t.scalar_type() == dtype): Expected to find Float type,
but tensor has type Half
### Test plan
I can only provide the log message from my local run for that
```
...
I 00:00:00.745945 executorch:executor_runner.cpp:138] Setting up planned buffer 0, size 13026185216.
I 00:00:02.139255 executorch:executor_runner.cpp:161] Method loaded.
I 00:00:02.139295 executorch:executor_runner.cpp:171] Inputs prepared.
I 00:00:28.297681 executorch:executor_runner.cpp:180] Model executed successfully.
...
```
0 commit comments