.. _op_ai_onnx_Upsample: Upsample ======== .. warning:: This operator is **deprecated**. - **Domain**: ``ai.onnx`` - **Since version**: 10 Upsample the input tensor. Each dimension value of the output tensor is: .. code-block:: text output_dimension = floor(input_dimension * scale). **Inputs** - **X** (*T*): N-D tensor - **scales** (*tensor(float)*): The scale array along each dimension. It takes value greater than or equal to 1. The number of elements of 'scales' should be the same as the rank of input 'X'. **Outputs** - **Y** (*T*): N-D tensor after resizing **Attributes** - **mode** (*string*): Two interpolation modes: nearest (default), and linear (including bilinear, trilinear, etc) **Type Constraints** - **T**: Constrain input 'X' and output 'Y' to all tensor types. Allowed types: tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8). Differences with previous version (9) ------------------------------------- **SchemaDiff**: ``Upsample`` (domain ``'ai.onnx'``) * old version: 9 * new version: 10 * breaking: **yes** **Breaking reasons:** * operator deprecated: False -> True **Deprecation:** * [BREAKING] deprecated False -> True Version History --------------- - :doc:`Version 9 ` - :doc:`Version 7 ` - :doc:`Version 1 `