Repository navigation
Commit dafa082
authored
Add missing Buck build targets and module exports for the cortex_m quantizer package (pytorch#16370)
Summary:
This diff adds missing Buck build targets and module exports for the
cortex_m quantizer package
## Rationale
The recent diff-train commit D89549367 added softmax support to the
cortex_m backend, which introduced new quantizer files
(operator_configs.py, quantization_configs.py, quantizer.py). However,
the following were missing:
1. **TARGETS files**: No Buck build targets existed for the quantizer
package, making it impossible to depend on these modules from other
targets
2. **__init__.py files**: No module exports existed, preventing proper
Python package imports
3. **Dependency in ops/TARGETS**: The ops target was missing the
quantization_configs dependency needed for the operators module
## Changes
- Add `quantizer` and `quantization_configs` Buck targets
- Add `__init__.py` with proper exports for quantizer classes and config
constants
- Add missing `quantization_configs` dependency to `ops/TARGETS`
- Use appropriate build macros: `runtime.python_library` for xplat,
`python_library`
Reviewed By: digantdesai
Differential Revision: D896880881 parent 92a8ba9 commit dafa082
3 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments