Visible to Intel only — GUID: GUID-A31DBEDB-2378-4865-B4CC-28D20B090244
Visible to Intel only — GUID: GUID-A31DBEDB-2378-4865-B4CC-28D20B090244
StaticReshape
General
StaticReshape operation changes dimensions of tensor according to the specified shape. The volume of is equal to , where volume is the product of dimensions. may have a different memory layout from . StaticReshape operation is not guaranteed to return a view or a copy of when is in-placed with the . StaticReshape can be used where if shape is stored in a constant node or available during graph building stage. Then shape can be passed via shape attribute.
Operation attributes
Attribute Name |
Description |
Value Type |
Supported Values |
Required or Optional |
---|---|---|---|---|
Specifies rules used for auto-broadcasting of src tensors. |
string |
none , numpy (default) |
Required |
|
Controls how zero values in shape are interpreted. |
bool |
true , false |
Required |
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 |
Outputs
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
dst |
Required |
Supported data types
StaticReshape operation supports the following data type combinations.
Src |
Dst |
---|---|
f32 |
f32 |
bf16 |
bf16 |
f16 |
f16 |