
    ij                         d dl Z d Zy)    Nc                      |yt        |t              r)t        t        j                  | j
                              S t        |t        t        f      rt         fd|D              S t        |      r |       S y)a(  Determines if a layer should be quantized based on filters.

    Args:
        layer: The layer to check.
        filters: A regex string, a list of regex strings, or a callable.
            If None, returns True.

    Returns:
        True if the layer should be quantized, False otherwise.
    Tc              3   ^   K   | ]$  }t        j                  |j                         & y w)N)researchname).0patlayers     o/var/www/html/emotional.easysim.app/public_html/venv/lib/python3.12/site-packages/keras/src/quantizers/utils.py	<genexpr>z(should_quantize_layer.<locals>.<genexpr>   s      A#299S%**-As   *-)

isinstancestrboolr   r   r   listtupleanycallable)r
   filterss   ` r   should_quantize_layerr      se     '3BIIguzz233'D%=)AAAAu~    )r   r    r   r   <module>r      s    	r   