U
    Å9%e0  ã                   @   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)ÚtorchZ_shape_as_tensor)Úx© r   úS/var/www/html/Darija-Ai-API/env/lib/python3.8/site-packages/torch/onnx/operators.pyÚshape_as_tensor   s    r   c                 C   s   t  | |¡S r   )r   Z_reshape_from_tensor)r   Úshaper   r   r   Úreshape_from_tensor_shape   s    r	   )Ú__doc__r   Z
torch.onnxr   r	   r   r   r   r   Ú<module>   s   
