
    i-
                     j    d Z ddlmZ ddlmZ ddlmZ  ed      e G d d	e                    Zd	gZy
)zRegNet model configuration    )strict   )PreTrainedConfig)auto_docstringzfacebook/regnet-y-040)
checkpointc                       e Zd ZU dZdZddgZdZeed<   dZ	eed<   d	Z
ee   eed
f   z  ed<   dZee   eed
f   z  ed<   dZeed<   dZeed<   dZeed<   dZeed<   d Zy)RegNetConfiga  
    groups_width (`int`, *optional*, defaults to 64):
        Width of group for each stage.
    layer_type (`str`, *optional*, defaults to `"y"`):
        The layer to use, it can be either `"x" or `"y"`. An `x` layer is a ResNet's BottleNeck layer with
        `reduction` fixed to `1`. While a `y` layer is a `x` but with squeeze and excitation. Please refer to the
        paper for a detailed explanation of how these layers were constructed.
    downsample_in_first_stage (`bool`, *optional*, defaults to `False`):
        If `True`, the first stage will downsample the inputs using a `stride` of 2.

    Example:
    ```python
    >>> from transformers import RegNetConfig, RegNetModel

    >>> # Initializing a RegNet regnet-y-40 style configuration
    >>> configuration = RegNetConfig()
    >>> # Initializing a model from the regnet-y-40 style configuration
    >>> model = RegNetModel(configuration)
    >>> # Accessing the model configuration
    >>> configuration = model.config
    ```
    regnetxyr   num_channels    embedding_size)      i   i@  .hidden_sizes)         r   depths@   groups_width
layer_typerelu
hidden_actTdownsample_in_first_stagec                     | j                   | j                  vr4t        d| j                    ddj                  | j                               y)zOPart of `@strict`-powered validation. Validates the architecture of the config.zlayer_type=z is not one of ,N)r   layer_types
ValueErrorjoin)selfs    /var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/transformers/models/regnet/configuration_regnet.pyvalidate_architecturez"RegNetConfig.validate_architecture<   sG    ??$"2"22{4??*;?388TXTdTdKeJfghh 3    N)__name__
__module____qualname____doc__
model_typer   r   int__annotations__r   r   listtupler   r   r   strr   r   boolr$    r%   r#   r	   r	      s    . J*KL#NC0EL$s)eCHo-E*7FDIc3h'7L#JJ&*t*ir%   r	   N)	r)   huggingface_hub.dataclassesr   configuration_utilsr   utilsr   r	   __all__r1   r%   r#   <module>r6      sK    ! . 3 # 23'i# 'i  4'iT 
r%   