
    hj                     h    S SK Jr  S SKrS SKJrJr  S SKJrJr  \R                  S 5       r
S rS rg)    )partialN)Linear	resizable)resize_linear_weightedresize_modelc                  P    [        S S S9n SSS.n[        U [        [        US9S9nU$ )N)nOnIr   )bW)fill_defaults)resize_layer)r   r   r   r   )output_layerr   models      [/home/james-whalen/.local/lib/python3.13/site-packages/thinc/tests/layers/test_resizable.pyr   r   	   s7    Td+L!$M3=QE L    c                 (    U R                   S:X  d   eg )Nzresizable(linear))namer   s    r   "test_resizable_linear_default_namer      s    ::,,,,r   c                     [        U SS9  [        U SS9  U R                  SSSS9  [        U SS9  U R                  SSSS9  U R                  SSSS9  [        U SS9  g	)
z8Test that resizing the model doesn't cause an exception.
   )new_nO   r	   r   T)forcer
   N)r   set_dimr   s    r   test_resize_modelr      s`    r"r"	MM$M&r"	MM$$M'	MM$M&r"r   )	functoolsr   pytest	thinc.apir   r   thinc.layers.resizabler   r   fixturer   r   r    r   r   <module>r$      s3      ' G  -
#r   