
    i&                         d dl Z d dlZd dlmZmZmZ d dlmZmZ ej                  j                  e d      ej                  j                  ddg      d               Zy)	    N)PyTorchWrapper_v2TorchScriptWrapper_v1pytorch_to_torchscript_wrapper)	has_torchtorchzneeds PyTorch)reasonznN,nI,nO)         c                    t        t        j                  j                  ||            j	                         }t        |      }t        j                  j                  | |      j                  d      }|j                  |      }|j                  |      }t        j                  j                  ||       |j                         }t               }	|	j                  |       t        j                  j                  ||	j                  |             y )Nf)r   r   nnLinear
initializer   numpyrandomrandnastypepredicttestingassert_allcloseto_bytesr   
from_bytes)
nNnInOmodelscript_modelXYY_script
serializedscript_model2s
             {/var/www/vps2.regionflexible.com/Desarrollo/venv/lib/python3.12/site-packages/thinc/tests/layers/test_torchscriptwrapper.pytest_pytorch_scriptr%      s     ehhoob"56AACE1%8L2r"))#.AaA##A&H	MM!!!X.&&(J)+MZ(	MM!!!]%:%:1%=>    )r   pytest	thinc.apir   r   r   thinc.compatr   r   markskipifparametrizer%    r&   r$   <module>r.      s_      
 * 	M/:i[1? 2 ;?r&   