


"""simple docstring"""







from __future__ import annotations

from statistics import mean
def _A		(		lowercase						):







    """simple docstring"""
    a											=2
    a											=list(lowercase						)
    a											=[0] * len(lowercase						)
    a											=0
    while True:
        a											=True
        for i, burst_time in enumerate(lowercase						):
            if rem_burst_times[i] > 0:
                a											=False
                if rem_burst_times[i] > quantum:
                    t += quantum
                    rem_burst_times[i] -= quantum
                else:
                    t += rem_burst_times[i]
                    a											=t - burst_time
                    a											=0
        if done is True:
            return waiting_times
def _A		(		lowercase			,       lowercase						):







    """simple docstring"""
    return [burst + waiting for burst, waiting in zip(lowercase			,       lowercase						)]


if __name__ == "__main__":
       lowerCamelCase_  :  List[Any]     		=    [3, 5, 7]
       lowerCamelCase_  :  List[str]     		=    calculate_waiting_times(burst_times)
       lowerCamelCase_  :  List[Any]     		=    calculate_turn_around_times(burst_times, waiting_times)
       print("""Process ID \tBurst Time \tWaiting Time \tTurnaround Time""")
       for i, burst_time in enumerate(burst_times):
              print(
                  F'  {i + 1}\t\t  {burst_time}\t\t  {waiting_times[i]}\t\t  '
                  F'{turn_around_times[i]}'
              )
       print(F'\nAverage waiting time = {mean(waiting_times):.5f}')
       print(F'Average turn around time = {mean(turn_around_times):.5f}')




from ...configuration_utils import PretrainedConfig
from ...utils import logging


A__       =			logging.get_logger(__name__)

A__       =			{
    """MCG-NJU/videomae-base""": """https://huggingface.co/MCG-NJU/videomae-base/resolve/main/config.json""",
}





class    __lowerCAmelCase					(	lowerCamelCase__			):
				__lowerCamelCase					=							'''videomae'''




				def __init__(				self		,							_snake_case=224		,							_snake_case=16		,							_snake_case=3		,							_snake_case=16		,							_snake_case=2		,							_snake_case=768		,							_snake_case=12		,							_snake_case=12		,							_snake_case=3072		,							_snake_case="gelu"		,							_snake_case=0.0		,							_snake_case=0.0		,							_snake_case=0.02		,							_snake_case=1e-12		,							_snake_case=True		,							_snake_case=True		,							_snake_case=6		,							_snake_case=384		,							_snake_case=4		,							_snake_case=1536		,							_snake_case=True		,							**_snake_case		,							):



									"""simple docstring"""





									super().__init__(**_snake_case						)

									_lowerCAmelCase         =       image_size
									_lowerCAmelCase         =       patch_size
									_lowerCAmelCase         =       num_channels
									_lowerCAmelCase         =       num_frames
									_lowerCAmelCase         =       tubelet_size

									_lowerCAmelCase         =       hidden_size
									_lowerCAmelCase         =       num_hidden_layers
									_lowerCAmelCase         =       num_attention_heads
									_lowerCAmelCase         =       intermediate_size
									_lowerCAmelCase         =       hidden_act
									_lowerCAmelCase         =       hidden_dropout_prob
									_lowerCAmelCase         =       attention_probs_dropout_prob
									_lowerCAmelCase         =       initializer_range
									_lowerCAmelCase         =       layer_norm_eps
									_lowerCAmelCase         =       qkv_bias
									_lowerCAmelCase         =       use_mean_pooling

									_lowerCAmelCase         =       decoder_num_attention_heads
									_lowerCAmelCase         =       decoder_hidden_size
									_lowerCAmelCase         =       decoder_num_hidden_layers
									_lowerCAmelCase         =       decoder_intermediate_size
									_lowerCAmelCase         =       norm_pix_loss



