U
    Mh0                     @   s8   d Z ddlZddlm  mZ dd Zedkr4e  dS )z>Trivial use of Timer API:

$ python -m examples.simple_timeit
    Nc                  C   sr   t jdtdtdddd} tdD ]B}td| d	d
  td| d d	 td|   d q*d S )Nzx + y)      )   r   )xyzBroadcasting add (4x8))stmtglobalslabel   zRun: 
z(----------------------------------------ztimeit:
i'  zautorange:
z

)benchmark_utilsTimertorchZonesrangeprintZtimeitZblocked_autorange)Ztimeri r   ^/var/www/html/venv/lib/python3.8/site-packages/torch/utils/benchmark/examples/simple_timeit.pymain   s    r   __main__)__doc__r   Ztorch.utils.benchmarkutilsZ	benchmarkr   r   __name__r   r   r   r   <module>   s
   