diff --git a/docs/ops/shape/Reshape_1.md b/docs/ops/shape/Reshape_1.md index 218273dc573..23226edb3cb 100644 --- a/docs/ops/shape/Reshape_1.md +++ b/docs/ops/shape/Reshape_1.md @@ -9,14 +9,16 @@ **Detailed description**: *Reshape* layer takes two input tensors: the tensor to be resized and the output tensor shape. The values in the second tensor could be -1, 0 and any positive integer number. The two special values -1 and 0: - * `0` means "copy the respective dimension of the input tensor" if `special_zero` is set to `true`; otherwise it is a normal dimension and is applicable to empty tensors. - * `-1` means that this dimension is calculated to keep the overall elements count the same as in the input tensor. Not more than one `-1` can be used in a reshape operation. + * `0` means "copy the respective dimension *(left aligned)* of the input tensor" if `special_zero` is set to `true`; otherwise it is a normal dimension and is applicable to empty tensors. + * `-1` means that this dimension is calculated to keep the overall elements count the same as in the input tensor. Not more than one `-1` can be used in a reshape operation. + +If `special_zero` is set to `true` index of `0` cannot be larger than the rank of the input tensor. **Attributes**: * *special_zero* - * **Description**: *special_zero* controls how zero values in `shape` are interpreted. If *special_zero* is `false`, then 0 is interpreted as-is which means that output shape will contain a zero dimension at the specified location. Input and output tensors are empty in this case. If *special_zero* is `true`, then all zeros in `shape` implies the copying of corresponding dimensions from `data.shape` into the output shape. + * **Description**: *special_zero* controls how zero values in `shape` are interpreted. If *special_zero* is `false`, then 0 is interpreted as-is which means that output shape will contain a zero dimension at the specified location. Input and output tensors are empty in this case. If *special_zero* is `true`, then all zeros in `shape` implies the copying of corresponding dimensions from `data.shape` into the output shape *(left aligned)*. * **Range of values**: `false` or `true` * **Type**: boolean * **Default value**: None @@ -51,7 +53,7 @@ 0 - 2 + 2 @@ -87,3 +89,70 @@ ``` +```xml + + + + + 2 + 2 + 3 + + + 4 + + + + + 2 + 2 + 1 + 3 + + + +``` + +```xml + + + + + 3 + 1 + 1 + + + 2 + + + + + 3 + 1 + + + +``` + +```xml + + + + + 3 + 1 + 1 + + + 2 + + + + + 3 + 1 + + + +``` \ No newline at end of file