



import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


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






class SCREAMING_SNAKE_CASE__     (		snake_case_    ):




    '''simple docstring'''






    def __init__(       self,		*lowerCamelCase__,		**lowerCamelCase__		):
        warnings.warn(
            """The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
            """ Please use PerceiverImageProcessor instead.""",		lowerCamelCase__,		)
        super().__init__(*lowerCamelCase__,		**lowerCamelCase__		)









'''simple docstring'''

from collections.abc import Sequence





def lowerCamelCase						(     __lowerCamelCase :    Sequence[float]					,       __lowerCamelCase :    bool = False    )						->float:
    if not arr:
        return 0

    _SCREAMING_SNAKE_CASE									=			0 if allow_empty_subarrays else float("""-inf"""    )
    _SCREAMING_SNAKE_CASE									=			0.0
    for num in arr:
        _SCREAMING_SNAKE_CASE									=			max(0 if allow_empty_subarrays else num					,       curr_sum + num    )
        _SCREAMING_SNAKE_CASE									=			max(__lowerCamelCase					,       __lowerCamelCase    )

    return max_sum


if __name__ == "__main__":
      from doctest import testmod

      testmod()

      lowercase_					= [-2, 1, -3, 4, -1, 2, 1, -5, 4]
      print(f"""{max_subarray_sum(nums) = }""")



