3
I4W^B  ã               @   s0   d Z ddlZddlZddlZdd„ Zdd„ ZdS )ah  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 traceble.

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 j| ƒS )N)ÚtorchZ_shape_as_tensor)Úx© r   ú5/tmp/pip-build-e66j97b2/torch/torch/onnx/operators.pyÚshape_as_tensor   s    r   c             C   s   t j| |ƒS )N)r   Z_reshape_from_tensor)r   Úshaper   r   r   Úreshape_from_tensor_shape   s    r   )Ú__doc__r   Z
torch.onnxZtorch.onnx.utilsr   r   r   r   r   r   Ú<module>   s
   