


'''simple docstring'''





import jax.numpy as jnp

from ...utils import logging
from ..ta.modeling_flax_ta import FlaxTaEncoderModel, FlaxTaForConditionalGeneration, FlaxTaModel
from .configuration_mta import MTaConfig


__lowerCamelCase												=						logging.get_logger(__name__)

__lowerCamelCase												=						'''T5Config'''


def        a__     (					UpperCamelCase_						:      jnp.array,   UpperCamelCase_						:      int,   UpperCamelCase_						:      int						):
   UpperCAmelCase__	:List[str]      =      jnp.zeros_like(UpperCamelCase_						)
   UpperCAmelCase__	:Union[str, Any]      =      shifted_input_ids.at[:, 1:].set(input_ids[:, :-1]						)
   UpperCAmelCase__	:Dict      =      shifted_input_ids.at[:, 0].set(UpperCamelCase_						)

   UpperCAmelCase__	:Optional[Any]      =      jnp.where(shifted_input_ids == -100,   UpperCamelCase_,   UpperCamelCase_						)
   return shifted_input_ids




class 				UpperCAmelCase			(			_snake_case						):
 UpperCAmelCase				=					"mt5"
 UpperCAmelCase				=					MTaConfig




class 				UpperCAmelCase			(			_snake_case						):
 UpperCAmelCase				=					"mt5"
 UpperCAmelCase				=					MTaConfig




class 				UpperCAmelCase			(			_snake_case						):
 UpperCAmelCase				=					"mt5"
 UpperCAmelCase				=					MTaConfig







'''simple docstring'''





from ..utils import DummyObject, requires_backends




class 				UpperCAmelCase			(			metaclass=_snake_case						):
 UpperCAmelCase				=					["speech"]


 def __init__(      self							:	List[Any]			,       *__lowerCamelCase							:	List[Any]			,       **__lowerCamelCase							:	List[str] ):
    requires_backends(self			,       ['''speech'''] )




class 				UpperCAmelCase			(			metaclass=_snake_case						):
 UpperCAmelCase				=					["speech"]


 def __init__(      self							:	int			,       *__lowerCamelCase							:	List[Any]			,       **__lowerCamelCase							:	List[str] ):
    requires_backends(self			,       ['''speech'''] )



