Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,12 @@ def _enable_module_qat(self, module: Module):
self._qat_enabled = True
self._calibrate_if_possible(module)

# mark export mode for module Conv layers
module.export_with_qlinearconv = self._quantize_conv_activations
if hasattr(module, "module"):
# for DP/DDP unwrapping
module.module.export_with_qlinearconv = self._quantize_conv_activations

def _calibrate_if_possible(self, module):
if self.num_calibration_steps == 0 and self._calibration_dataloader:
warnings.warn(
Expand Down
Loading