


from ..utils import DummyObject, requires_backends

class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Any			=      ["flax"]


     def __init__(      self							:     Optional[Any]							,	*lowerCamelCase__							:     List[str]							,	**lowerCamelCase__							:     List[str]			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[str]							,	*lowerCamelCase__							:     Dict							,	**lowerCamelCase__							:     List[str]			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[str]							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     Optional[int]			)  ->      int:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Optional[int]			=      ["flax"]


     def __init__(      self							:     Optional[Any]							,	*lowerCamelCase__							:     Tuple							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Optional[int]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Any							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     int			)  ->      List[str]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     int							,	*lowerCamelCase__							:     Dict							,	**lowerCamelCase__							:     List[Any]			)  ->      int:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		List[str]			=      ["flax"]


     def __init__(      self							:     Tuple							,	*lowerCamelCase__							:     str							,	**lowerCamelCase__							:     Optional[Any]			)  ->      List[str]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     str							,	*lowerCamelCase__							:     Dict							,	**lowerCamelCase__							:     str			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Any							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     Dict			)  ->      str:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Dict			=      ["flax"]


     def __init__(      self							:     List[str]							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     Tuple			)  ->      Tuple:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Union[str, Any]							,	*lowerCamelCase__							:     Tuple							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Dict:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Tuple							,	*lowerCamelCase__							:     str							,	**lowerCamelCase__							:     List[str]			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		int			=      ["flax"]


     def __init__(      self							:     Union[str, Any]							,	*lowerCamelCase__							:     str							,	**lowerCamelCase__							:     int			)  ->      Optional[int]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Union[str, Any]							,	*lowerCamelCase__							:     Any							,	**lowerCamelCase__							:     List[str]			)  ->      Tuple:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     int							,	*lowerCamelCase__							:     Optional[Any]							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Dict:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Any			=      ["flax"]


     def __init__(      self							:     Any							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     Any			)  ->      int:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Optional[int]							,	*lowerCamelCase__							:     List[Any]							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     str							,	*lowerCamelCase__							:     Optional[Any]							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Optional[int]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		List[str]			=      ["flax"]


     def __init__(      self							:     Any							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     str			)  ->      Dict:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[Any]							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     str			)  ->      Optional[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Optional[int]							,	*lowerCamelCase__							:     Optional[Any]							,	**lowerCamelCase__							:     Optional[int]			)  ->      Optional[int]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Optional[Any]			=      ["flax"]


     def __init__(      self							:     List[str]							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     Optional[int]			)  ->      Optional[Any]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Optional[Any]							,	*lowerCamelCase__							:     List[Any]							,	**lowerCamelCase__							:     Tuple			)  ->      List[str]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     int							,	*lowerCamelCase__							:     Union[str, Any]							,	**lowerCamelCase__							:     int			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		str			=      ["flax"]


     def __init__(      self							:     Union[str, Any]							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     List[str]			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     str							,	*lowerCamelCase__							:     List[Any]							,	**lowerCamelCase__							:     Union[str, Any]			)  ->      Optional[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[Any]							,	*lowerCamelCase__							:     Union[str, Any]							,	**lowerCamelCase__							:     Any			)  ->      Optional[int]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		List[str]			=      ["flax"]


     def __init__(      self							:     List[Any]							,	*lowerCamelCase__							:     Any							,	**lowerCamelCase__							:     Optional[Any]			)  ->      Tuple:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[str]							,	*lowerCamelCase__							:     Tuple							,	**lowerCamelCase__							:     List[str]			)  ->      List[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Tuple							,	*lowerCamelCase__							:     Dict							,	**lowerCamelCase__							:     List[str]			)  ->      List[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		Optional[int]			=      ["flax"]


     def __init__(      self							:     str							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     Tuple			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Tuple							,	*lowerCamelCase__							:     Any							,	**lowerCamelCase__							:     int			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     int							,	*lowerCamelCase__							:     Optional[int]							,	**lowerCamelCase__							:     Optional[Any]			)  ->      List[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		str			=      ["flax"]


     def __init__(      self							:     Optional[int]							,	*lowerCamelCase__							:     str							,	**lowerCamelCase__							:     Optional[Any]			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     str							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     Optional[Any]			)  ->      List[Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Optional[Any]							,	*lowerCamelCase__							:     List[str]							,	**lowerCamelCase__							:     List[Any]			)  ->      List[str]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)



class       __magic_name__	(     metaclass=__lowerCAmelCase):
     A:		List[str]			=      ["flax"]


     def __init__(      self							:     List[str]							,	*lowerCamelCase__							:     Any							,	**lowerCamelCase__							:     Optional[int]			)  ->      int:





      '''simple docstring'''






      requires_backends(self							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     List[Any]							,	*lowerCamelCase__							:     int							,	**lowerCamelCase__							:     Optional[int]			)  ->      Union[str, Any]:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)


     @classmethod
     def      UpperCAmelCase__	(      cls							:     Union[str, Any]							,	*lowerCamelCase__							:     Optional[Any]							,	**lowerCamelCase__							:     int			)  ->      Any:





      '''simple docstring'''






      requires_backends(cls							,	['''flax''']			)






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_speech_available,
    is_torch_available,
)


__UpperCamelCase       :       Dict						       =				{
    "configuration_trocr": ["TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP", "TrOCRConfig"],
    "processing_trocr": ["TrOCRProcessor"],
}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __UpperCamelCase       :       Optional[int]						       =				[
           "TROCR_PRETRAINED_MODEL_ARCHIVE_LIST",
           "TrOCRForCausalLM",
           "TrOCRPreTrainedModel",
       ]


if TYPE_CHECKING:
       from .configuration_trocr import TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP, TrOCRConfig
       from .processing_trocr import TrOCRProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_trocr import TROCR_PRETRAINED_MODEL_ARCHIVE_LIST, TrOCRForCausalLM, TrOCRPreTrainedModel

else:
       import sys

       __UpperCamelCase       :       Tuple						       =				_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)


