

'''simple docstring'''
import sys
import turtle


def        _lowerCAmelCase					(						_UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]				)      ->			tuple[float, float]:
     """simple docstring"""




     return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2


def        _lowerCAmelCase					(						_UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     tuple[float, float]							, _UpperCamelCase						:     int							, )      ->			None:
     """simple docstring"""




     my_pen.up()
     my_pen.goto(vertexa[0]							, vertexa[1]				)
     my_pen.down()
     my_pen.goto(vertexa[0]							, vertexa[1]				)
     my_pen.goto(vertexa[0]							, vertexa[1]				)
     my_pen.goto(vertexa[0]							, vertexa[1]				)

     if depth == 0:
          return

     triangle(_UpperCamelCase							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, depth - 1				)
     triangle(_UpperCamelCase							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, depth - 1				)
     triangle(_UpperCamelCase							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, get_mid(_UpperCamelCase							, _UpperCamelCase				)							, depth - 1				)


if __name__ == "__main__":
     if len(sys.argv) != 2:
          raise ValueError(
              "Correct format for using this script: "
              "python fractals.py <int:depth_for_fractal>"
          )
     lowerCamelCase :      Dict					 =     turtle.Turtle()
     my_pen.ht()
     my_pen.speed(5)
     my_pen.pencolor("red")

     lowerCamelCase :      Dict					 =     [(-1_7_5, -1_2_5), (0, 1_7_5), (1_7_5, -1_2_5)]  # vertices of triangle
     triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))



'''simple docstring'''
from typing import Optional, Union

import torch
from torch import nn

from ...configuration_utils import ConfigMixin, register_to_config
from ...models.modeling_utils import ModelMixin







class 							A__    (       A__     ,   A__  ):





  @register_to_config
  def __init__(		self      :	Dict							,					_a      :	int = 768							,					)	->    Union[str, Any]:





       '''simple docstring'''






       super().__init__()

       _SCREAMING_SNAKE_CASE							    =nn.Parameter(torch.zeros(1							,					_a ) )
       _SCREAMING_SNAKE_CASE							    =nn.Parameter(torch.ones(1							,					_a ) )





  def 						A  (		self      :	Tuple							,					_a      :	Optional[Union[str, torch.device]] = None							,					_a      :	Optional[torch.dtype] = None							,					)	->    List[Any]:





       '''simple docstring'''






       _SCREAMING_SNAKE_CASE							    =nn.Parameter(self.mean.to(_a ).to(_a ) )
       _SCREAMING_SNAKE_CASE							    =nn.Parameter(self.std.to(_a ).to(_a ) )
       return self





  def 						A  (		self      :	Tuple							,					_a      :	str )	->    str:





       '''simple docstring'''






       _SCREAMING_SNAKE_CASE							    =(embeds - self.mean) * 1.0 / self.std
       return embeds





  def 						A  (		self      :	List[str]							,					_a      :	Optional[Any] )	->    Tuple:





       '''simple docstring'''






       _SCREAMING_SNAKE_CASE							    =(embeds * self.std) + self.mean
       return embeds
