From dba1fb9adc3cb6423b4a02b68f4e1170cc60d58d Mon Sep 17 00:00:00 2001 From: Jozef Daniecki Date: Wed, 21 Jul 2021 13:23:56 +0200 Subject: [PATCH] Revise specification for Select operation (#6488) * Add types section and refactored input tesnsor description. * Stylistic changes. * Marked inputs as 'Required'. --- docs/ops/condition/Select_1.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/ops/condition/Select_1.md b/docs/ops/condition/Select_1.md index 8f516249610..56e5fde8eab 100644 --- a/docs/ops/condition/Select_1.md +++ b/docs/ops/condition/Select_1.md @@ -17,26 +17,31 @@ * **Description**: specifies rules used for auto-broadcasting of input tensors. * **Range of values**: - * *none* - no auto-broadcasting is allowed, all input shapes should match - * *numpy* - numpy broadcasting rules, aligned with ONNX Broadcasting. Description is available in ONNX docs. - * **Type**: string + * *none* - no auto-broadcasting is allowed, all input shapes must match + * *numpy* - numpy broadcasting rules, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md) + * *pdpd* - PaddlePaddle-style implicit broadcasting, description is available in [Broadcast Rules For Elementwise Operations](../broadcast_rules.md) + * **Type**: `string` * **Default value**: "numpy" * **Required**: *no* **Inputs**: -* **1**: `cond` tensor with selection mask of type `boolean`. The tensor can be 0D. +* **1**: `cond` - tensor of type *T_COND* and arbitrary shape with selection mask. **Required**. -* **2**: `then` the tensor with elements to take where the corresponding element in `cond` is true. Arbitrary type that should match type of `else` input tensor. +* **2**: `then` - tensor of type *T* and arbitrary shape with elements to take where the corresponding element in `cond` is `true`. **Required**. -* **3**: `else` the tensor with elements to take where the corresponding element in `cond` is false. Arbitrary type that should match type of `then` input tensor. +* **3**: `else` - tensor of type *T* and arbitrary shape with elements to take where the corresponding element in `cond` is `false`. **Required**. **Outputs**: * **1**: blended output tensor that is tailored from values of inputs tensors `then` and `else` based on `cond` and broadcasting rules. It has the same type of elements as `then` and `else`. +**Types** + +* *T_COND*: `boolean` type. +* *T*: any supported numeric type. **Example**