o
    ÙÜÓh0  ã                   @   s(   d Z ddlZddlZdd„ Zdd„ ZdS )an  This file provides a location for operators that help exporting models via onnx.

E.g. `shape_as_tensor` and `reshape_from_tensor_shape`
are to make all dynamic sizes operations traceable.

NOTE: at one point these functions were implemented differently.
Since then we have implemented these directly in ATen, so this
file is kept purely for backward-compatibility.
é    Nc                 C   s
   t  | ¡S ©N)ÚtorchÚ_shape_as_tensor)Úx© r   úJ/var/www/html/ai/venv/lib/python3.10/site-packages/torch/onnx/operators.pyÚshape_as_tensor   s   
r   c                 C   s   t  | |¡S r   )r   Ú_reshape_from_tensor)r   Úshaper   r   r   Úreshape_from_tensor_shape   s   r   )Ú__doc__r   Ú
torch.onnxr   r   r   r   r   r   Ú<module>   s
    
