
    Vh                        d dl Z d dlZd dlZd Z e       Zes# e j
                  e      Zej                  d       h dZ	e e
       Z e
       Z e
       Z e
       Znej                  j!                  ed      Zej                  j!                  ed      Z e
 ej&                  e            Z e
 ej&                  e            Zej                  j!                  ed      Zej                  j!                  ed      Z e
 ej&                  e            Z e
 ej&                  e            Zh d	Zej/                  e      Zeez  ez  ez  D ](  Z eej5                  d
            dk7  s ede d       ej9                  e      Z ee      d kD  r ed ee      z         ej9                  e      Z ee      d kD  r ed ee      z         y)    Nc            	         ddl m} m}m}m}m}m} t        j                  dk(  ry  | | | | t                    d            } | ||d            r|S t        j                  d   }t        |dd       }|y  | | |            } ||      |k7  r0 ||      dk(  r | ||d            r|S  ||      } ||      |k7  r0y )	Nr   )abspathbasenamedirnameexistsjoinnormpathwin32z../../../testdynamo_expected_failures__main____file__test)os.pathr   r   r   r   r   r	   sysplatformr   modulesgetattr)	r   r   r   r   r   r	   test_dirmainfiles	            \/home/dcms/DCMS/lib/python3.12/site-packages/torch/testing/_internal/dynamo_test_failures.pyfind_test_dirr      s    JJ
||w WWX%67IJHd8789 ;;z"D4T*D|wt}%H
(
x
'H'F56-
 O8$ (
x
'     zYtest/dynamo_expected_failures directory not found - known dynamo errors won't be skipped.>   test_ops
test_torchtest_modulestest_ops_gradientsr   dynamo_skipsinductor_expected_failuresinductor_skips>
   >TestProxyTensorOpInfoCPU.test_make_fx_exhaustive_T_cpu_float32>TestProxyTensorOpInfoCPU.test_make_fx_exhaustive_t_cpu_float32CTestProxyTensorOpInfoCPU.test_make_fx_fake_exhaustive_T_cpu_float32CTestProxyTensorOpInfoCPU.test_make_fx_fake_exhaustive_t_cpu_float32GTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_T_cpu_float32GTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_t_cpu_float32KTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_out_T_cpu_float32KTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_out_t_cpu_float32OTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_inplace_T_cpu_float32OTestProxyTensorOpInfoCPU.test_make_fx_symbolic_exhaustive_inplace_t_cpu_float32.   zInvalid test name: ""zRthere should be no overlap between dynamo_expected_failures and dynamo_skips, got zVthere should be no overlap between inductor_expected_failures and inductor_skips, got ) loggingosr   r   r   	getLogger__name__loggerwarningFIXME_inductor_non_strictsetr   r   r   r    pathr   dynamo_failures_directorydynamo_skips_directorylistdirinductor_failures_directoryinductor_skips_directoryextra_dynamo_skipsunionr   lensplitAssertionErrorintersectiondynamo_intersectionstrinductor_intersection r   r   <module>rF      s    	 
0< ?Wx(F
NNc  "u5L!$UN "X7Q RWW\\(NC":2::.G#HIzrzz"89:L"$'',,x9U"V!ww||H6FG!$ZRZZ0K%L!M$<=>N  !!"45
  ! =D 4::c?q 3D6;<<= /;;LI a
	!#&':#;	< 
 3??O !
	#%()>%?	@  "r   