MCPcopy Create free account
hub / github.com/pytorch/executorch / set_global

Method set_global

backends/arm/quantizer/arm_quantizer.py:582–594  ·  view source on GitHub ↗

Set quantization_config for submodules not matched by other filters. Args: quantization_config (Optional[QuantizationConfig]): Configuration to apply to modules that are not captured by name or type filters. ``None`` indicates no quantization.

(
        self, quantization_config: Optional[QuantizationConfig]
    )

Source from the content-addressed store, hash-verified

580 )
581
582 def set_global(
583 self, quantization_config: Optional[QuantizationConfig]
584 ) -> TOSAQuantizer:
585 """Set quantization_config for submodules not matched by other filters.
586
587 Args:
588 quantization_config (Optional[QuantizationConfig]): Configuration to
589 apply to modules that are not captured by name or type filters.
590 ``None`` indicates no quantization.
591
592 """
593 self.quantizer.set_global(quantization_config)
594 return self
595
596 def set_module_type(
597 self, module_type: Callable, quantization_config: Optional[QuantizationConfig]

Calls

no outgoing calls