





"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__A											=		{
    """configuration_bridgetower""": [
        """BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """BridgeTowerConfig""",
        """BridgeTowerTextConfig""",
        """BridgeTowerVisionConfig""",
    ],
    """processing_bridgetower""": ["""BridgeTowerProcessor"""],
}

try:
  if not is_vision_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __A											=		["""BridgeTowerImageProcessor"""]

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __A											=		[
      """BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """BridgeTowerForContrastiveLearning""",
      """BridgeTowerForImageAndTextRetrieval""",
      """BridgeTowerForMaskedLM""",
      """BridgeTowerModel""",
      """BridgeTowerPreTrainedModel""",
  ]


if TYPE_CHECKING:
  from .configuration_bridgetower import (
      BRIDGETOWER_PRETRAINED_CONFIG_ARCHIVE_MAP,
      BridgeTowerConfig,
      BridgeTowerTextConfig,
      BridgeTowerVisionConfig,
  )
  from .processing_bridgetower import BridgeTowerProcessor

  try:
    if not is_vision_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .image_processing_bridgetower import BridgeTowerImageProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_bridgetower import (
        BRIDGETOWER_PRETRAINED_MODEL_ARCHIVE_LIST,
        BridgeTowerForContrastiveLearning,
        BridgeTowerForImageAndTextRetrieval,
        BridgeTowerForMaskedLM,
        BridgeTowerModel,
        BridgeTowerPreTrainedModel,
    )


else:
  import sys

  __A											=		_LazyModule(__name__, globals()["""__file__"""], _import_structure)





'''simple docstring'''





from collections.abc import Sequence

def        a_     (							_lowerCAmelCase       ,_lowerCAmelCase       )      ->      float:
  return sum(c * (x**i) for i, c in enumerate(_lowerCAmelCase       )       )

def        a_     (							_lowerCAmelCase       ,_lowerCAmelCase       )      ->      float:
  __lowerCamelCase       :       Any           = 0.0
  for coeff in reversed(_lowerCAmelCase       ):
    __lowerCamelCase       :       Tuple           = result * x + coeff
  return result


if __name__ == "__main__":
   _UpperCamelCase											=						(0.0, 0.0, 5.0, 9.3, 7.0)
   _UpperCamelCase											=						1_0.0
   print(evaluate_poly(poly, x))
   print(horner(poly, x))






