File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed
Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ endif()
2525
2626option (COREML_BUILD_EXECUTOR_RUNNER "Build CoreML executor runner." OFF )
2727
28- set (CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
29-
3028# inmemoryfs sources
3129set (INMEMORYFS_SOURCES
3230 runtime/inmemoryfs/inmemory_filesystem.cpp
@@ -240,7 +238,6 @@ if(EXECUTORCH_BUILD_COREML AND EXECUTORCH_BUILD_PYBIND)
240238
241239 pybind11_add_module(executorchcoreml SHARED runtime/inmemoryfs/inmemory_filesystem_py.cpp)
242240
243- target_compile_options (executorchcoreml PRIVATE -mmacosx-version -min=${CMAKE_OSX_DEPLOYMENT_TARGET} )
244241 if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo" )
245242 target_compile_options (executorchcoreml PRIVATE -g)
246243 endif ()
Original file line number Diff line number Diff line change 1010import torch
1111from executorch .backends .example .example_operators .ops import module_to_annotator
1212from torch import fx
13- from torchao .quantization .pt2e .graph_utils import find_sequential_partitions
14- from torchao .quantization .pt2e .observer import HistogramObserver , MinMaxObserver
13+ from torchao .quantization .pt2e import (
14+ find_sequential_partitions ,
15+ HistogramObserver ,
16+ MinMaxObserver ,
17+ )
1518from torchao .quantization .pt2e .quantizer import (
1619 OperatorConfig ,
1720 QuantizationSpec ,
Original file line number Diff line number Diff line change 1010
1111import torch
1212
13- from torchao .quantization .pt2e .fake_quantize import FakeQuantize
14- from torchao .quantization .pt2e .observer import MinMaxObserver , PerChannelMinMaxObserver
13+ from torchao .quantization .pt2e import (
14+ FakeQuantize ,
15+ MinMaxObserver ,
16+ PerChannelMinMaxObserver ,
17+ )
1518from torchao .quantization .pt2e .quantizer import QuantizationSpec
1619
1720
Original file line number Diff line number Diff line change 2828 is_annotated ,
2929 no_outside_users ,
3030)
31- from executorch .backends .xnnpack .quantizer .xnnpack_quantizer_utils import (
31+ from torch import fx
32+ from torchao .quantization .pt2e import HistogramObserver , MinMaxObserver
33+ from torchao .quantization .pt2e .quantizer import (
34+ ComposableQuantizer ,
35+ DerivedQuantizationSpec ,
3236 OperatorConfig ,
3337 QuantizationAnnotation ,
3438 QuantizationConfig ,
3539 QuantizationSpec ,
40+ Quantizer ,
3641)
37- from torch import fx
38- from torchao .quantization .pt2e .observer import HistogramObserver , MinMaxObserver
39- from torchao .quantization .pt2e .quantizer import DerivedQuantizationSpec , Quantizer
40- from torchao .quantization .pt2e .quantizer .composable_quantizer import ComposableQuantizer
4142
4243
4344class NeutronAtenQuantizer (Quantizer ):
Original file line number Diff line number Diff line change 1717import torch .fx
1818
1919from nncf .common .graph .graph import NNCFGraph # type: ignore[import-untyped]
20- from torchao .quantization .pt2e . observer import (
20+ from torchao .quantization .pt2e import (
2121 HistogramObserver ,
2222 PerChannelMinMaxObserver ,
2323 UniformQuantizationObserverBase ,
You can’t perform that action at this time.
0 commit comments