Commit 88a5f60
authored
Arm backend: Fix VGF neural statistics test PAL init and dangling test target (#22136)
Two fixes for the VGF neural statistics tests added in #22074.
1. `VgfNeuralStatisticsTest.RuntimeConfigFallsBackToMode1` aborted.
The invalid-mode fallback path in
`get_vgf_neural_statistics_runtime_config()` calls `ET_LOG`, which
aborts with `ExecuTorch PAL must be initialized before call to
et_pal_current_ticks()` when the runtime has not been initialized.
Initialize the PAL in the test env fixture, the same way
`backends/arm/test/vela_external_blocks_test.cpp` does.
2. `//executorch/devtools/inspector/tests:vgf_neural_statistics_test`
failed to build.
The `python_unittest` target points at `vgf_neural_statistics_test.py`,
which was never added to the tree, so the target fails to build with
`File not found:
devtools/inspector/tests/vgf_neural_statistics_test.py`. Remove the
dangling target.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils
@Sebastian-Larsson @robell @rascani1 parent 6a36ebe commit 88a5f60
2 files changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
| |||
0 commit comments