
    h                         S SK r S SKJr  S SKJrJr  \ R                  R                  \(       + SS9\ R                  R                  \(       + SS9S 5       5       rg)    N)CupyOps)	has_torchhas_torch_cuda_gpuzneeds PyTorch)reasonzneeds a GPUc                  H   SS K n [        R                  b  [        5       nU R                  S5      R	                  5       nUR                  U5      nUR                  UR                  :X  d   eUR                  R                  R                  UUR                  SS5      5        g g )Nr   )
      r   r	   )
torchr   xpzeroscudaasarrayshapetestingassert_allclosealloc2f)r
   opstas       ^/home/james-whalen/.local/lib/python3.13/site-packages/thinc/tests/regression/test_issue564.pytest_issue564r      s~     zziKK %%'KKNww!''!!!&&KKA	
     )	pytest	thinc.apir   thinc.compatr   r   markskipifr    r   r   <module>r      sY      6 	M/:**=A
 B ;
r   