# QConfig Source: https://www.tensorplay.cn/docs/generated/tensorplay.ao.quantization.QConfig.html ```python class tensorplay.ao.quantization.QConfig(activation, weight) ``` Describes how to quantize a layer: observer factories for activations and weights. Both fields must be observer classes or callables returning observer instances. Use MyObserver.with_args(x=1) to override constructor arguments. ```python activation ``` Alias for field number 0 ```python count(value, /) ``` Return number of occurrences of value. ```python index(value, start=0, stop=9223372036854775807, /) ``` Return first index of value. Raises ValueError if the value is not present. ```python weight ``` Alias for field number 1