
    |-j}                     F    d dl mZ ddlmZ ddlmZ  G d de          ZdS )	   UnsupportedAPIError   )BaseTrainer   )MODELSc                   .    e Zd ZdZeZd Zd ZdefdZ	dS )WhisperTrainerzInstance Whisper Model Trainerc                      t          d          )Nz(whisper model not support train for now.r   )selfconfigs     w/var/www/html/banglarbhumi/venv/lib/python3.11/site-packages/paddlex/modules/multilingual_speech_recognition/trainer.py__init__zWhisperTrainer.__init__   s    !"LMMM    c                     dS )zupdate training configN )r   s    r   update_configzWhisperTrainer.update_config   s      r   returnc                 f    |                                  | j                            dd          d}|S )zget key-value arguments of model training function

        Returns:
            dict: the arguments of training function.
        ampOFF)devicer   )
get_devicetrain_configget)r   
train_argss     r   get_train_kwargszWhisperTrainer.get_train_kwargs    s;     oo''$((66
 

 r   N)
__name__
__module____qualname____doc__r   entitiesr   r   dictr   r   r   r   r
   r
      s[        ((HN N N% % %
$ 
 
 
 
 
 
r   r
   N)utils.errorsr   baser   
model_listr   r
   r   r   r   <module>r'      sq    0 / / / / /                [     r   