+
    9i                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIt	^ RI
tRRRRRR	/tR
RRRRRRRRRRRRR/tRR R lltRR ltR t]R8X  d
   ]! 4        R# R# )    )annotationsN)default_timerztensor(float16)float16ztensor(float)float32ztensor(double)float64ztensor(int32)int32ztensor(int8)int8ztensor(uint8)uint8ztensor(int16)int16ztensor(uint16)uint16ztensor(int64)int64ztensor(uint64)uint64c                   V ^8  d   QhRR/# )   symbolic_dimszdict | None )formats   "`/var/www/html/photoedit/myenv/lib/python3.14/site-packages/onnxruntime/tools/onnxruntime_test.py__annotate__r   !   s           c                N   / pT;'       g    / pV P                  4        EF  p. pVP                   F  pV'       g   VP                  ^4       K  \        V\        4      '       d<   WQ9   d#   VP                  \        W,          4      4       K\  VP                  ^4       Ko  VP                  V4       K  	  VP                  \        9   dQ   \        P                  P                  ! V!  P                  \        VP                  ,          4      W#P                  &   K  VP                  \        9   d^   \        P                  P                  R\        V4      R7      P                  \        VP                  ,          4      W#P                  &   EKm  VP                  R8X  dI   \        P                  P!                  ^\        V4      R7      P                  R4      W#P                  &   EK  \#        RVP                   RVP                   24       \$        P&                  ! R4       EK  	  V# )	     highsizetensor(bool)r   boolzunsupported input type z for input )
get_inputsshapeappend
isinstancestrinttype
float_dictnprandomrandastypenameinteger_dictuniformtuplerandintprintsysexit)sessr   feeds
input_metar"   dims   &&    r   generate_feedsr9   !   sx   E!''RMoo'
##CQC%%'LL]%7!89LLOS! $ ??j(%'YY^^U%;%B%B:jooC^%_E//"__,%'YY%6%6DuU|%6%T%[%[Z__-&E//" __.%'YY%6%6quU|%6%L%S%STZ%[E//"+JOO+<K
GXYZHHRL5 (6 Lr   c                   T;'       g    / pV'       dL   \        R \        P                  ! 4        24       \        R4       \        P                  P                  ^4       RpV'       dA   \        P                  ! 4       pRVn        \        P                  P                  V 4      Vn        \        P                  ! V V\        P                  ! 4       R7      pVP                  4       p	V'       g   \        W4      pV'       Ed   VP!                  4        EF  p
V
P"                   Uu. uF  q'       d   TM^NK  	  ppV
P$                  \&        9   dQ   \(        P*                  P,                  ! V!  P/                  \&        V
P$                  ,          4      WZP0                  &   K  V
P$                  \2        9   d]   \(        P*                  P5                  R\7        V4      R7      P/                  \2        V
P$                  ,          4      WZP0                  &   K  V
P$                  R8X  dI   \(        P*                  P9                  ^\7        V4      R7      P/                  R	4      WZP0                  &   EKW  \        R
V
P$                   RV
P0                   24       \        P:                  ! R4       EK  	  \=        4       p\?        V4       F  pVPA                  . V4      pK  	  \=        4       p\        RV	PB                   24       \        RV	PD                   24       \        RV 24       \        RVV,
          R,          V,           R24       V'       d   VPG                  4       p\        RV 24       ^ YQ^ 8  ;'       d    X3# u upi )z7Pausing execution ready for debugger to attach to pid: zPress key to continue.NT)sess_options	providersr   r   r   r   r   zunsupported initializer type z for initializer zmodel: z	version: ziterations: zavg latency: z msztrace file written to: r    )$r2   osgetpidr3   stdinreadonnxrtSessionOptionsenable_profilingpathbasenameprofile_file_prefixInferenceSessionget_available_providersget_modelmetar9   get_overridable_initializersr"   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r4   timerrangerun
graph_nameversionend_profiling)
model_path	num_itersdebugprofiler   r6   override_initializersr;   r5   metainitializerr8   r"   start_ioutputsend
trace_files   &&&&&&&           r   	run_modelr]   C   s    "''RMG		}UV&'		qL,,.(,%+-77+;+;J+G(""!002D
 Dt3  <<>K2=2C2CD2C3CSQ&2CED:-*,))..%*@*G*G
S^ScScHd*e&&'!!\1*,))*;*;ERWL*;*Y*`*` !1!12+&&' !!^3*,))*;*;AE%L*;*Q*X*XY_*`&&'5k6F6F5GGXYdYiYiXjkl ? GEI((2u% 
'C	GDOO$
%&	Idll^
$%	L
$%	MC%K4/9<=S
AB'')
'
|45e]..w..7 Es   $M:c                    \         P                  ! R R7      p V P                  RRR7       V P                  RR\        RRR	7       V P                  R
RRR7       V P                  RRRR7       V P                  R/ R RR7       V P	                  4       p\        VP                  VP                  VP                  VP                  VP                  4      w  p p\        P                  ! V4       R# )zSimple ONNX Runtime Test Tool.)descriptionrQ   z
model path)helprR   ?r   z"model run iterations. default=1000)nargsr'   defaultr`   z--debug
store_truez.pause execution to allow attaching a debugger.)actionr`   z	--profilez'enable chrome timeline trace profiling.z--symbolic_dimsc                D    \        R  V P                  R4       4       4      # )c              3  B   "   T F  qP                  R 4      x  K  	  R# 5i)=N)split).0xs   & r   	<genexpr>)main.<locals>.<lambda>.<locals>.<genexpr>   s     ?,QGGCLL,s   ,)dictri   )ss   &r   <lambda>main.<locals>.<lambda>   s    t?!''#,??r   zComma separated name=value pairs for any symbolic dimensions in the model input. e.g. --symbolic_dims batch=1,seqlen=5. If not provided, the value of 1 will be used for all symbolic dimensions.)rc   r'   r`   N)argparseArgumentParseradd_argumentr&   
parse_argsr]   rQ   rR   rS   rT   r   r3   r4   )parserargs	exit_code_s       r   mainr{      s    $$1QRF
<8
1   =  
 L?hi
?T	   DT\\[_[m[mnOIq!HHYr   __main__)N)r   NNNNT)
__future__r   rs   r=   r3   timeitr   rK   numpyr)   onnxruntimerA   r(   r.   r9   r]   r{   __name__r   r   r   <module>r      s   
 #  	 
 )   yYi
 WFWWhWhD?/D< zF r   