Visible to Intel only — GUID: GUID-DAC45644-F19A-41CB-9E4D-05442F1DA1D1
Visible to Intel only — GUID: GUID-DAC45644-F19A-41CB-9E4D-05442F1DA1D1
Interpolate
General
Interpolate layer performs interpolation on tensor at spatial dimensions.
Operation attributes
Attribute Name |
Description |
Value Type |
Supported Values |
Required or Optional |
---|---|---|---|---|
Specifies type of interpolation. |
string |
nearest , linear , bilinear , trilinear |
Required |
|
Specifies how to transform the coordinate in the resized tensor to the coordinate in the original tensor. |
string |
half_pixel (default), align_corners |
Optional |
|
Specifies dst shape for spatial axes. |
s64 |
A s64 list containing positive values, none is default |
Optional |
|
Specifies scales for spatial axes. |
f32 |
A f32 list, none is default |
Optional |
|
Controls how to interpret the shape of src and dst . |
string |
NCX , NXC (default) |
Optional |
Here scale[x] is dst_shape[x]/src_shape[x] and x_resized is a coordinate in axis x,for any axis x from the src axis.
For half_pixel : the coordinate in the original tensor axis x is calculated as ((x_resized + 0.5) / scale[x]) - 0.5.
For align_corners : the coordinate in the original tensor axis x is calculated as 0 if dst_shape[x] == 1 else x_resized * (src_shape[x] - 1) / (dst_shape[x] - 1).
Execution arguments
The inputs and outputs must be provided according to below index order when constructing an operation.
Inputs
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
src |
Required |
1 |
sizes |
Optional |
Outputs
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
dst |
Required |
Supported data types
Interpolate operation supports the following data type combinations.
Src |
Dst |
Sizes |
---|---|---|
f32 |
f32 |
s32 |
bf16 |
bf16 |
s32 |
f16 |
f16 |
s32 |