|
5 | 5 | import torch
|
6 | 6 | from torch import Tensor
|
7 | 7 |
|
| 8 | +from torchao.quantization.pt2e_flow.pt2e._numeric_debugger import ( # noqa: F401 |
| 9 | + CUSTOM_KEY, |
| 10 | + NUMERIC_DEBUG_HANDLE_KEY, |
| 11 | + compare_results, |
| 12 | + extract_results_from_loggers, |
| 13 | + generate_numeric_debug_handle, |
| 14 | + prepare_for_propagation_comparison, |
| 15 | +) |
| 16 | +from torchao.quantization.pt2e_flow.pt2e.export_utils import ( |
| 17 | + _allow_exported_model_train_eval as allow_exported_model_train_eval, |
| 18 | +) |
| 19 | +from torchao.quantization.pt2e_flow.pt2e.export_utils import ( |
| 20 | + _move_exported_model_to_eval as move_exported_model_to_eval, |
| 21 | +) |
| 22 | +from torchao.quantization.pt2e_flow.pt2e.export_utils import ( |
| 23 | + _move_exported_model_to_train as move_exported_model_to_train, |
| 24 | +) |
| 25 | + |
8 | 26 | from .fake_quantize import (
|
9 | 27 | FakeQuantize,
|
10 | 28 | FakeQuantizeBase,
|
|
40 | 58 | ZeroPointDomain,
|
41 | 59 | get_block_size,
|
42 | 60 | )
|
43 |
| -from .pt2e._numeric_debugger import ( # noqa: F401 |
44 |
| - CUSTOM_KEY, |
45 |
| - NUMERIC_DEBUG_HANDLE_KEY, |
46 |
| - compare_results, |
47 |
| - extract_results_from_loggers, |
48 |
| - generate_numeric_debug_handle, |
49 |
| - prepare_for_propagation_comparison, |
50 |
| -) |
51 |
| -from .pt2e.export_utils import ( |
52 |
| - _allow_exported_model_train_eval as allow_exported_model_train_eval, |
53 |
| -) |
54 |
| -from .pt2e.export_utils import ( |
55 |
| - _move_exported_model_to_eval as move_exported_model_to_eval, |
56 |
| -) |
57 |
| -from .pt2e.export_utils import ( |
58 |
| - _move_exported_model_to_train as move_exported_model_to_train, |
59 |
| -) |
60 |
| -from .qconfig import * # noqa: F403 |
61 | 61 |
|
62 | 62 | # ensure __module__ is set correctly for public APIs
|
63 | 63 | ObserverOrFakeQuantize = Union[ObserverBase, FakeQuantizeBase]
|
|
0 commit comments