


'''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


_a   :   List[str]												=   logging.get_logger(__name__)

_a   :   Tuple												=   "T5Config"





def   _a		(lowercase__			:   jnp.array							,   lowercase__			:   int							,   lowercase__			:   int						)			->			jnp.ndarray:






     """simple docstring"""
     __snake_case           =						jnp.zeros_like(lowercase__						)
     __snake_case           =						shifted_input_ids.at[:, 1:].set(input_ids[:, :-1]						)
     __snake_case           =						shifted_input_ids.at[:, 0].set(lowercase__						)

     __snake_case           =						jnp.where(shifted_input_ids == -1_0_0							,   lowercase__							,   lowercase__						)
     return shifted_input_ids




class 			_lowercase (	__lowercase							):
   _SCREAMING_SNAKE_CASE  :  str          =	"mt5"
   _SCREAMING_SNAKE_CASE  :  str          =	MTaConfig




class 			_lowercase (	__lowercase							):
   _SCREAMING_SNAKE_CASE  :  List[str]          =	"mt5"
   _SCREAMING_SNAKE_CASE  :  int          =	MTaConfig




class 			_lowercase (	__lowercase							):
   _SCREAMING_SNAKE_CASE  :  Union[str, Any]          =	"mt5"
   _SCREAMING_SNAKE_CASE  :  Dict          =	MTaConfig









from ..utils import DummyObject, requires_backends





class  lowerCamelCase__	(    metaclass=UpperCAmelCase_):
     """simple docstring"""



     _A      =      ['transformers', 'torch', 'note_seq']







     def __init__(self					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(self					,      ["transformers", "torch", "note_seq"]     )







     @classmethod
     def     _a   (cls					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(cls					,      ["transformers", "torch", "note_seq"]     )







     @classmethod
     def     _a   (cls					,      *__a					,      **__a     ):






           '''simple docstring'''



           requires_backends(cls					,      ["transformers", "torch", "note_seq"]     )