






"""simple docstring"""



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


_UpperCamelCase		:  List[Any]						=		logging.get_logger(__name__)

_UpperCamelCase		:  Optional[int]						=		{
    """studio-ousia/luke-base""": """https://huggingface.co/studio-ousia/luke-base/resolve/main/config.json""",
    """studio-ousia/luke-large""": """https://huggingface.co/studio-ousia/luke-large/resolve/main/config.json""",
}

class        a     (   UpperCAmelCase__	):
    UpperCAmelCase_ :     Dict	     ="luke"







    def __init__(			self							,		_lowerCamelCase=5_0_2_6_7							,		_lowerCamelCase=5_0_0_0_0_0							,		_lowerCamelCase=7_6_8							,		_lowerCamelCase=2_5_6							,		_lowerCamelCase=1_2							,		_lowerCamelCase=1_2							,		_lowerCamelCase=3_0_7_2							,		_lowerCamelCase="gelu"							,		_lowerCamelCase=0.1							,		_lowerCamelCase=0.1							,		_lowerCamelCase=5_1_2							,		_lowerCamelCase=2							,		_lowerCamelCase=0.0_2							,		_lowerCamelCase=1e-12							,		_lowerCamelCase=True							,		_lowerCamelCase=None							,		_lowerCamelCase=1							,		_lowerCamelCase=0							,		_lowerCamelCase=2							,		**_lowerCamelCase							,		):
      super().__init__(pad_token_id=UpperCAmelCase__							,		bos_token_id=UpperCAmelCase__							,		eos_token_id=UpperCAmelCase__							,		**UpperCAmelCase__       )

      lowercase							    =       vocab_size
      lowercase							    =       entity_vocab_size
      lowercase							    =       hidden_size
      lowercase							    =       entity_emb_size
      lowercase							    =       num_hidden_layers
      lowercase							    =       num_attention_heads
      lowercase							    =       hidden_act
      lowercase							    =       intermediate_size
      lowercase							    =       hidden_dropout_prob
      lowercase							    =       attention_probs_dropout_prob
      lowercase							    =       max_position_embeddings
      lowercase							    =       type_vocab_size
      lowercase							    =       initializer_range
      lowercase							    =       layer_norm_eps
      lowercase							    =       use_entity_aware_attention
      lowercase							    =       classifier_dropout








from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

_lowerCamelCase	:		str							       =   typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
_lowerCamelCase	:		Tuple							       =   typing.Union[np.floataa, int, float]  # noqa: UP007







def SCREAMING_SNAKE_CASE				(       lowercase_ ,				lowercase_						)   ->       VectorOut:



       """simple docstring"""

       return np.sqrt(np.sum((np.asarray(lowercase_						) - np.asarray(lowercase_						)) ** 2						)						)







def SCREAMING_SNAKE_CASE				(       lowercase_ ,				lowercase_						)   ->       VectorOut:



       """simple docstring"""

       return sum((va - va) ** 2 for va, va in zip(lowercase_ ,				lowercase_						)						) ** (1 / 2)


if __name__ == "__main__":







  def SCREAMING_SNAKE_CASE				(       )   ->       None:



         """simple docstring"""

         from timeit import timeit

         print('''Without Numpy'''						)
         print(
             timeit(
                 '''euclidean_distance_no_np([1, 2, 3], [4, 5, 6])''' ,				number=10_000 ,				globals=globals() ,				)						)
         print('''With Numpy'''						)
         print(
             timeit(
                 '''euclidean_distance([1, 2, 3], [4, 5, 6])''' ,				number=10_000 ,				globals=globals() ,				)						)
  benchmark()


