File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# LICENSE file in the root directory of this source tree.
88
99import platform
10+ import sys
1011import tempfile
1112from pathlib import Path
1213
5859 with tempfile .TemporaryDirectory () as work_dir :
5960 test_cpp_sdk .run_tests (Path (work_dir ))
6061
61- test_base .run_tests (
62- model_tests = [
63- test_base .ModelTest (
64- model = Model .Mv3 ,
65- backend = Backend .XnnpackQuantizationDelegation ,
66- ),
62+ model_tests = [
63+ test_base .ModelTest (
64+ model = Model .Mv3 ,
65+ backend = Backend .XnnpackQuantizationDelegation ,
66+ ),
67+ ]
68+ # The wheel declares coremltools only below 3.14, because that release publishes no build for
69+ # it, so on 3.14 this case would fail on the missing import rather than exercise Core ML.
70+ if sys .version_info < (3 , 14 ):
71+ model_tests .append (
6772 test_base .ModelTest (
6873 model = Model .Mv3 ,
6974 backend = Backend .CoreMlExportOnly ,
70- ),
71- ]
72- )
75+ )
76+ )
77+ else :
78+ print ("Skipping the Core ML case: coremltools has no Python 3.14 build" )
79+
80+ test_base .run_tests (model_tests = model_tests )
Original file line number Diff line number Diff line change 66# This source code is licensed under the BSD-style license found in the
77# LICENSE file in the root directory of this source tree.
88
9+ import sys
10+
911import test_base
1012from examples .models import Backend , Model
1113
1214if __name__ == "__main__" :
1315 test_base .test_cmsis_nn_install ()
1416
15- test_base .run_tests (
16- model_tests = [
17- test_base .ModelTest (
18- model = Model .Mv3 ,
19- backend = Backend .XnnpackQuantizationDelegation ,
20- ),
17+ model_tests = [
18+ test_base .ModelTest (
19+ model = Model .Mv3 ,
20+ backend = Backend .XnnpackQuantizationDelegation ,
21+ ),
22+ ]
23+ # The wheel declares coremltools only below 3.14, because that release publishes no build for
24+ # it, so on 3.14 this case would fail on the missing import rather than exercise Core ML.
25+ if sys .version_info < (3 , 14 ):
26+ model_tests .append (
2127 test_base .ModelTest (
2228 model = Model .Mv3 ,
2329 backend = Backend .CoreMlExportAndTest ,
24- ),
25- ]
26- )
30+ )
31+ )
32+ else :
33+ print ("Skipping the Core ML case: coremltools has no Python 3.14 build" )
34+
35+ test_base .run_tests (model_tests = model_tests )
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class ETDumpGen : public ::executorch::runtime::EventTracer {
7474 public:
7575 ETDumpGen (::executorch::runtime::Span<uint8_t > buffer = {nullptr , (size_t )0 });
7676 ~ETDumpGen () override ;
77+ void clear_builder ();
7778
7879 void create_event_block (const char * name) override ;
7980 virtual ::executorch::runtime::EventTracerEntry start_profiling (
Original file line number Diff line number Diff line change 33datasets == 3.6.0 # 4.0.0 deprecates trust_remote_code and load scripts. For now pin to 3.6.0
44timm == 1.0.7
55torchsr == 1.0.4
6- torchtune @ git+https://github.com/pytorch/torchtune.git@3c1872ace149f03ef4ffec765d3f0a5fd0399497
6+ # torchtune caps pyarrow below 21, and no pyarrow in that range ships a cp314 wheel,
7+ # so pip falls back to the sdist and its Arrow C++ build fails. Skip it on 3.14 until
8+ # torchtune relaxes the cap; nothing that needs torchtune runs on 3.14 yet.
9+ torchtune @ git+https://github.com/pytorch/torchtune.git@3c1872ace149f03ef4ffec765d3f0a5fd0399497 ; python_version < "3.14"
710transformers == 5.0.0rc1
You can’t perform that action at this time.
0 commit comments