






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


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

A_						:						Optional[int]						      =					{
    'google/vivit-b-16x2-kinetics400': (
        'https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json'
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}




class 							_lowerCAmelCase(			UpperCAmelCase_   ):





       """simple docstring"""







       a							:						Any										='''vivit'''





       def __init__(   self    ,     _lowerCamelCase=2_2_4    ,     _lowerCamelCase=3_2    ,     _lowerCamelCase=[2, 1_6, 1_6]    ,     _lowerCamelCase=3    ,     _lowerCamelCase=7_6_8    ,     _lowerCamelCase=1_2    ,     _lowerCamelCase=1_2    ,     _lowerCamelCase=3_0_7_2    ,     _lowerCamelCase="gelu_fast"    ,     _lowerCamelCase=0.0    ,     _lowerCamelCase=0.0    ,     _lowerCamelCase=0.0_2    ,     _lowerCamelCase=1e-06    ,     _lowerCamelCase=True    ,     **_lowerCamelCase    ,     ):
         UpperCamelCase_:   Optional[Any]        =							hidden_size
         UpperCamelCase_:   Dict        =							num_hidden_layers
         UpperCamelCase_:   Any        =							num_attention_heads
         UpperCamelCase_:   Optional[Any]        =							intermediate_size
         UpperCamelCase_:   List[Any]        =							hidden_act
         UpperCamelCase_:   List[str]        =							hidden_dropout_prob
         UpperCamelCase_:   Optional[Any]        =							attention_probs_dropout_prob
         UpperCamelCase_:   Dict        =							initializer_range
         UpperCamelCase_:   Tuple        =							layer_norm_eps

         UpperCamelCase_:   List[str]        =							image_size
         UpperCamelCase_:   Tuple        =							num_frames
         UpperCamelCase_:   str        =							tubelet_size
         UpperCamelCase_:   str        =							num_channels
         UpperCamelCase_:   List[str]        =							qkv_bias

         super().__init__(**_lowerCamelCase				)



'''simple docstring'''

from __future__ import annotations

lowerCamelCase				:  List[str]    		=      []

def _SCREAMING_SNAKE_CASE (A    ,					A    ,					A			)			->			bool:






       """simple docstring"""







       for i in range(len(A			)			):
              if board[row][i] == 1:
                     return False
       for i in range(len(A			)			):
              if board[i][column] == 1:
                     return False
       for i, j in zip(range(A    ,					-1    ,					-1			)    ,					range(A    ,					-1    ,					-1			)			):
              if board[i][j] == 1:
                     return False
       for i, j in zip(range(A    ,					-1    ,					-1			)    ,					range(A    ,					len(A			)			)			):
              if board[i][j] == 1:
                     return False
       return True

def _SCREAMING_SNAKE_CASE (A    ,					A			)			->			bool:






       """simple docstring"""







       if row >= len(A			):
              solution.append(A			)
              printboard(A			)
              print()
              return True
       for i in range(len(A			)			):
              if is_safe(A    ,					A    ,					A			):
                     lowercase__      =					1
                     solve(A    ,					row + 1			)
                     lowercase__      =					0
       return False

def _SCREAMING_SNAKE_CASE (A			)			->			None:






       """simple docstring"""







       for i in range(len(A			)			):
              for j in range(len(A			)			):
                     if board[i][j] == 1:
                            print('''Q'''    ,					end=''' '''			)
                     else:
                            print('''.'''    ,					end=''' '''			)
              print()


# n=int(input("The no. of queens"))
lowerCamelCase				:  Optional[Any]    		=      8
lowerCamelCase				:  Optional[int]    		=      [[0 for i in range(n)] for j in range(n)]
solve(board, 0)

print('The total no. of solutions are :', len(solution))




