


'''simple docstring'''






from __future__ import annotations

from typing import Any







def 							UpperCamelCase_     (       A__   :  list   ):
  '''simple docstring'''





  if not postfix_notation:
    return 0

  lowerCAmelCase_     : List[Any]     =  {"""+""", """-""", """*""", """/"""}
  lowerCAmelCase_     : list[Any]     =  []

  for token in postfix_notation:
    if token in operations:
      lowerCAmelCase_,				lowerCAmelCase_     : Any     =  stack.pop(), stack.pop()
      if token == "+":
        stack.append(a + b   )
      elif token == "-":
        stack.append(a - b   )
      elif token == "*":
        stack.append(a * b   )
      else:
        if a * b < 0 and a % b != 0:
          stack.append(a // b + 1   )
        else:
          stack.append(a // b   )
    else:
      stack.append(int(A__   )   )

  return stack.pop()


if __name__ == "__main__":
  import doctest

  doctest.testmod()







'''simple docstring'''






from typing import TYPE_CHECKING

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


__A   :    str											= {
    "configuration_audio_spectrogram_transformer": [
        "AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "ASTConfig",
    ]
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __A   :    List[str]											= [
      "AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
      "ASTForAudioClassification",
      "ASTModel",
      "ASTPreTrainedModel",
  ]

try:
  if not is_speech_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __A   :    Union[str, Any]											= ["ASTFeatureExtractor"]

if TYPE_CHECKING:
  from .configuration_audio_spectrogram_transformer import (
      AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
      ASTConfig,
  )

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_audio_spectrogram_transformer import (
        AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
        ASTForAudioClassification,
        ASTModel,
        ASTPreTrainedModel,
    )

  try:
    if not is_speech_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .feature_extraction_audio_spectrogram_transformer import ASTFeatureExtractor


else:
  import sys

  __A   :    List[Any]											= _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)



