From 6bad345df9572cea036e21658185868820e2f83b Mon Sep 17 00:00:00 2001 From: Bartek Szmelczynski Date: Mon, 7 Dec 2020 13:42:28 +0100 Subject: [PATCH] Refactor boolean attribute type (#3478) * Refactor boolean attribute type * fix python code --- docs/ops/condition/Bucketize_3.md | 6 +++--- docs/ops/detection/DetectionOutput_1.md | 4 ++-- docs/ops/detection/PriorBoxClustered_1.md | 6 +++--- docs/ops/detection/PriorBox_1.md | 18 +++++++++--------- docs/ops/detection/Proposal_1.md | 12 ++++++------ docs/ops/detection/Proposal_4.md | 12 ++++++------ docs/ops/image/Interpolate_1.md | 10 +++++----- docs/ops/image/Interpolate_4.md | 8 ++++---- docs/ops/matrix/MatMul_1.md | 12 ++++++------ docs/ops/movement/Reverse_1.md | 4 ++-- docs/ops/pooling/AvgPool_1.md | 2 +- docs/ops/reduction/ReduceL1_4.md | 16 ++++++++-------- docs/ops/reduction/ReduceL2_4.md | 16 ++++++++-------- docs/ops/reduction/ReduceLogicalAnd_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceLogicalOr_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceMax_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceMean_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceMin_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceProd_1.md | 16 ++++++++-------- docs/ops/reduction/ReduceSum_1.md | 16 ++++++++-------- docs/ops/sequence/CTCGreedyDecoder_1.md | 4 ++-- docs/ops/sequence/CTCLoss_4.md | 20 ++++++++++---------- docs/ops/sequence/GRUCell_3.md | 4 ++-- docs/ops/sort/NonMaxSuppression_1.md | 8 ++++---- docs/ops/sort/NonMaxSuppression_3.md | 8 ++++---- docs/ops/sort/NonMaxSuppression_4.md | 8 ++++---- docs/ops/sort/NonMaxSuppression_5.md | 8 ++++---- 27 files changed, 149 insertions(+), 149 deletions(-) diff --git a/docs/ops/condition/Bucketize_3.md b/docs/ops/condition/Bucketize_3.md index f1b23cc0cb9..066b6d8dae9 100644 --- a/docs/ops/condition/Bucketize_3.md +++ b/docs/ops/condition/Bucketize_3.md @@ -24,10 +24,10 @@ For example, if the first input tensor is `[[3, 50], [10, -1]]` and the second i * **Description**: indicates whether bucket includes the right or the left edge of interval. * **Range of values**: - * True - bucket includes the right interval edge - * False - bucket includes the left interval edge + * true - bucket includes the right interval edge + * false - bucket includes the left interval edge * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* **Inputs**: diff --git a/docs/ops/detection/DetectionOutput_1.md b/docs/ops/detection/DetectionOutput_1.md index 84cd483d6d5..d6ab50950dd 100644 --- a/docs/ops/detection/DetectionOutput_1.md +++ b/docs/ops/detection/DetectionOutput_1.md @@ -39,9 +39,9 @@ At each feature map cell, *DetectionOutput* predicts the offsets relative to the * *variance_encoded_in_target* * **Description**: *variance_encoded_in_target* is a flag that denotes if variance is encoded in target. If flag is false then it is necessary to adjust the predicted offset accordingly. - * **Range of values**: False or True + * **Range of values**: false or true * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *keep_top_k* diff --git a/docs/ops/detection/PriorBoxClustered_1.md b/docs/ops/detection/PriorBoxClustered_1.md index 33eaf9ed78b..5d798442a92 100644 --- a/docs/ops/detection/PriorBoxClustered_1.md +++ b/docs/ops/detection/PriorBoxClustered_1.md @@ -20,10 +20,10 @@ * **Description**: *clip* is a flag that denotes if each value in the output tensor should be clipped within [0,1]. * **Range of values**: - * False - clipping is not performed - * True - each value in the output tensor is within [0,1] + * false - clipping is not performed + * true - each value in the output tensor is within [0,1] * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* * *step (step_w, step_h)* diff --git a/docs/ops/detection/PriorBox_1.md b/docs/ops/detection/PriorBox_1.md index 8cec849b965..99842bc05ca 100644 --- a/docs/ops/detection/PriorBox_1.md +++ b/docs/ops/detection/PriorBox_1.md @@ -28,20 +28,20 @@ * **Description**: *flip* is a flag that denotes that each *aspect_ratio* is duplicated and flipped. For example, *flip* equals 1 and *aspect_ratio* equals to "4.0,2.0" mean that aspect_ratio is equal to "4.0,2.0,0.25,0.5". * **Range of values**: - * False - each *aspect_ratio* is flipped - * True - each *aspect_ratio* is not flipped + * false - each *aspect_ratio* is flipped + * true - each *aspect_ratio* is not flipped * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *clip* * **Description**: *clip* is a flag that denotes if each value in the output tensor should be clipped to [0,1] interval. * **Range of values**: - * False - clipping is not performed - * True - each value in the output tensor is clipped to [0,1] interval. + * false - clipping is not performed + * true - each value in the output tensor is clipped to [0,1] interval. * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *step* @@ -72,10 +72,10 @@ * **Description**: *scale_all_sizes* is a flag that denotes type of inference. For example, *scale_all_sizes* equals 0 means that the PriorBox layer is inferred in MXNet-like manner. In particular, *max_size* attribute is ignored. * **Range of values**: - * False - *max_size* is ignored - * True - *max_size* is used + * false - *max_size* is ignored + * true - *max_size* is used * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* * *fixed_ratio* diff --git a/docs/ops/detection/Proposal_1.md b/docs/ops/detection/Proposal_1.md index 84a0a1c8c93..6d2681a8603 100644 --- a/docs/ops/detection/Proposal_1.md +++ b/docs/ops/detection/Proposal_1.md @@ -87,25 +87,25 @@ * *clip_before_nms* * **Description**: *clip_before_nms* flag that specifies whether to perform clip bounding boxes before non-maximum suppression or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* * *clip_after_nms* * **Description**: *clip_after_nms* is a flag that specifies whether to perform clip bounding boxes after non-maximum suppression or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* * *normalize* * **Description**: *normalize* is a flag that specifies whether to perform normalization of output boxes to *[0,1]* interval or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* * *box_size_scale* diff --git a/docs/ops/detection/Proposal_4.md b/docs/ops/detection/Proposal_4.md index a22cd1684c6..a6c57b1be81 100644 --- a/docs/ops/detection/Proposal_4.md +++ b/docs/ops/detection/Proposal_4.md @@ -94,25 +94,25 @@ the second optional tensor of shape `[batch_size * post_nms_topn]` with probabil * *clip_before_nms* * **Description**: *clip_before_nms* flag that specifies whether to perform clip bounding boxes before non-maximum suppression or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* * *clip_after_nms* * **Description**: *clip_after_nms* is a flag that specifies whether to perform clip bounding boxes after non-maximum suppression or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* * *normalize* * **Description**: *normalize* is a flag that specifies whether to perform normalization of output boxes to *[0,1]* interval or not. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* * *box_size_scale* diff --git a/docs/ops/image/Interpolate_1.md b/docs/ops/image/Interpolate_1.md index 28935c4e80e..b3a45838394 100644 --- a/docs/ops/image/Interpolate_1.md +++ b/docs/ops/image/Interpolate_1.md @@ -27,19 +27,19 @@ * *align_corners* * **Description**: *align_corners* is a flag that specifies whether to align corners or not. 1 means the alignment is applied, 0 means the alignment isn't applied. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* * *antialias* * **Description**: *antialias* is a flag that specifies whether to perform anti-aliasing. * **Range of values**: - * False - do not perform anti-aliasing - * True - perform anti-aliasing + * false - do not perform anti-aliasing + * true - perform anti-aliasing * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *pads_begin* diff --git a/docs/ops/image/Interpolate_4.md b/docs/ops/image/Interpolate_4.md index 6a29876997b..72bb4352273 100644 --- a/docs/ops/image/Interpolate_4.md +++ b/docs/ops/image/Interpolate_4.md @@ -56,10 +56,10 @@ * **Description**: *antialias* is a flag that specifies whether to perform anti-aliasing. * **Range of values**: - * False - do not perform anti-aliasing - * True - perform anti-aliasing + * false - do not perform anti-aliasing + * true - perform anti-aliasing * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *pads_begin* @@ -492,4 +492,4 @@ class InterpolateCalculation: -``` \ No newline at end of file +``` diff --git a/docs/ops/matrix/MatMul_1.md b/docs/ops/matrix/MatMul_1.md index 29376972bda..346b7e1cc45 100644 --- a/docs/ops/matrix/MatMul_1.md +++ b/docs/ops/matrix/MatMul_1.md @@ -40,18 +40,18 @@ Two attributes, `transpose_a` and `transpose_b` specify embedded transposition f * *transpose_a* - * **Description**: transposes dimensions ROW_INDEX_DIM and COL_INDEX_DIM of the 1st input; **False** means no transpose, **True** means transpose. It is ignored if first input is 1D tensor. - * **Range of values**: False or True + * **Description**: transposes dimensions ROW_INDEX_DIM and COL_INDEX_DIM of the 1st input; **false** means no transpose, **true** means transpose. It is ignored if first input is 1D tensor. + * **Range of values**: false or true * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* * *transpose_b* - * **Description**: transposes dimensions ROW_INDEX_DIM and COL_INDEX_DIM of the 2nd input; **False** means no transpose, **True** means transpose. It is ignored if second input is 1D tensor. - * **Range of values**: False or True + * **Description**: transposes dimensions ROW_INDEX_DIM and COL_INDEX_DIM of the 2nd input; **false** means no transpose, **true** means transpose. It is ignored if second input is 1D tensor. + * **Range of values**: false or true * **Type**: boolean - * **Default value**: False + * **Default value**: false * **Required**: *no* diff --git a/docs/ops/movement/Reverse_1.md b/docs/ops/movement/Reverse_1.md index 4b96f0f0350..aef9a5320c7 100644 --- a/docs/ops/movement/Reverse_1.md +++ b/docs/ops/movement/Reverse_1.md @@ -10,9 +10,9 @@ If `index` mode is used, the second tensor should contain indices of axes that should be reversed. The length of the second tensor should be in a range from 0 to rank of the 1st input tensor. -In case if `mask` mode is used, then the second input tensor length should be equal to the rank of the 1st input. And each value has boolean value `True` or `False`. `True` means the corresponding axes should be reverted, `False` means it should be untouched. +In case if `mask` mode is used, then the second input tensor length should be equal to the rank of the 1st input. And each value has boolean value `true` or `false`. `true` means the corresponding axes should be reverted, `false` means it should be untouched. -If no axis specified, that means either the second input is empty if `index` mode is used or second input has only `False` elements if `mask` mode is used, then *Reverse* just passes the source tensor through output not doing any data movements. +If no axis specified, that means either the second input is empty if `index` mode is used or second input has only `false` elements if `mask` mode is used, then *Reverse* just passes the source tensor through output not doing any data movements. **Attributes** diff --git a/docs/ops/pooling/AvgPool_1.md b/docs/ops/pooling/AvgPool_1.md index b8f0ecb2f31..7ea9be03fd7 100644 --- a/docs/ops/pooling/AvgPool_1.md +++ b/docs/ops/pooling/AvgPool_1.md @@ -47,7 +47,7 @@ * *exclude_pad* * **Description**: *exclude_pad* is a type of pooling strategy for values in the padding area. For example, if *exclude_pad* is "true", zero-values in the padding are not used. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: boolean * **Default value**: None * **Required**: *yes* diff --git a/docs/ops/reduction/ReduceL1_4.md b/docs/ops/reduction/ReduceL1_4.md index d3f9d3160cc..7a119bf8014 100644 --- a/docs/ops/reduction/ReduceL1_4.md +++ b/docs/ops/reduction/ReduceL1_4.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -48,7 +48,7 @@ Corner cases: ```xml - + 6 @@ -73,7 +73,7 @@ Corner cases: ```xml - + 6 @@ -96,7 +96,7 @@ Corner cases: ```xml - + 6 @@ -120,7 +120,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceL2_4.md b/docs/ops/reduction/ReduceL2_4.md index 918f8cb4d5c..d2d6f140af0 100644 --- a/docs/ops/reduction/ReduceL2_4.md +++ b/docs/ops/reduction/ReduceL2_4.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -48,7 +48,7 @@ Corner cases: ```xml - + 6 @@ -73,7 +73,7 @@ Corner cases: ```xml - + 6 @@ -96,7 +96,7 @@ Corner cases: ```xml - + 6 @@ -120,7 +120,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceLogicalAnd_1.md b/docs/ops/reduction/ReduceLogicalAnd_1.md index 6ff706e1ed2..054ab224f4c 100644 --- a/docs/ops/reduction/ReduceLogicalAnd_1.md +++ b/docs/ops/reduction/ReduceLogicalAnd_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceLogicalOr_1.md b/docs/ops/reduction/ReduceLogicalOr_1.md index e2b30dd0244..5193c2a1c5f 100644 --- a/docs/ops/reduction/ReduceLogicalOr_1.md +++ b/docs/ops/reduction/ReduceLogicalOr_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceMax_1.md b/docs/ops/reduction/ReduceMax_1.md index e6a512efe89..2882d5a8208 100644 --- a/docs/ops/reduction/ReduceMax_1.md +++ b/docs/ops/reduction/ReduceMax_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. ** Types ** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceMean_1.md b/docs/ops/reduction/ReduceMean_1.md index 91ca61a17ad..92472346503 100644 --- a/docs/ops/reduction/ReduceMean_1.md +++ b/docs/ops/reduction/ReduceMean_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceMin_1.md b/docs/ops/reduction/ReduceMin_1.md index 83eb004bdca..a7cf59f0b51 100644 --- a/docs/ops/reduction/ReduceMin_1.md +++ b/docs/ops/reduction/ReduceMin_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceProd_1.md b/docs/ops/reduction/ReduceProd_1.md index fce7cdf9187..6ad2e6653bc 100644 --- a/docs/ops/reduction/ReduceProd_1.md +++ b/docs/ops/reduction/ReduceProd_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/reduction/ReduceSum_1.md b/docs/ops/reduction/ReduceSum_1.md index decab8e292a..3fcc53fbaa9 100644 --- a/docs/ops/reduction/ReduceSum_1.md +++ b/docs/ops/reduction/ReduceSum_1.md @@ -10,10 +10,10 @@ * *keep_dims* - * **Description**: If set to `True` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. - * **Range of values**: True or False + * **Description**: If set to `true` it holds axes that are used for reduction. For each such axis, output dimension is equal to 1. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** @@ -24,7 +24,7 @@ **Outputs** -* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == True`, or `i`-th dimension is removed from the output otherwise. +* **1**: Tensor of the same type as the 1st input tensor and `shape[i] = shapeOf(input1)[i]` for all `i` that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, `shape[i] == 1` if `keep_dims == true`, or `i`-th dimension is removed from the output otherwise. **Types** @@ -47,7 +47,7 @@ Corner cases: ```xml - + 6 @@ -72,7 +72,7 @@ Corner cases: ```xml - + 6 @@ -95,7 +95,7 @@ Corner cases: ```xml - + 6 @@ -119,7 +119,7 @@ Corner cases: ```xml - + 6 diff --git a/docs/ops/sequence/CTCGreedyDecoder_1.md b/docs/ops/sequence/CTCGreedyDecoder_1.md index ca9acfa29d7..59c6bf267ee 100644 --- a/docs/ops/sequence/CTCGreedyDecoder_1.md +++ b/docs/ops/sequence/CTCGreedyDecoder_1.md @@ -22,9 +22,9 @@ Sequences in the batch can have different length. The lengths of sequences are c * *merge_repeated* * **Description**: *merge_repeated* is a flag for merging repeated labels during the CTC calculation. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* **Inputs** diff --git a/docs/ops/sequence/CTCLoss_4.md b/docs/ops/sequence/CTCLoss_4.md index 8927c393252..67def3a2250 100644 --- a/docs/ops/sequence/CTCLoss_4.md +++ b/docs/ops/sequence/CTCLoss_4.md @@ -27,9 +27,9 @@ p_{i,t,j} = \frac{\exp(logits[i,t,j])}{\sum^{K}_{k=0}{\exp(logits[i,t,k])}} 2. For a given `i`-th target from `labels[i,:]` find all aligned paths. A path `S = (c1,c2,...,cT)` is aligned with a target `G=(g1,g2,...,gT)` if both chains are equal after decoding. -The decoding extracts substring of length `label_length[i]` from a target `G`, merges repeated characters in `G` in case *preprocess_collapse_repeated* equal to True and -finds unique elements in the order of character occurrence in case *unique* equal to True. -The decoding merges repeated characters in `S` in case *ctc_merge_repeated* equal to True and removes blank characters represented by `blank_index`. +The decoding extracts substring of length `label_length[i]` from a target `G`, merges repeated characters in `G` in case *preprocess_collapse_repeated* equal to true and +finds unique elements in the order of character occurrence in case *unique* equal to true. +The decoding merges repeated characters in `S` in case *ctc_merge_repeated* equal to true and removes blank characters represented by `blank_index`. By default, `blank_index` is equal to `C-1`, where `C` is a number of classes including the blank. For example, in case default *ctc_merge_repeated*, *preprocess_collapse_repeated*, *unique* and `blank_index` a target sequence `G=(0,3,2,2,2,2,2,4,3)` of a length `label_length[i]=4` is processed to `(0,3,2,2)` and a path `S=(0,0,4,3,2,2,4,2,4)` of a length `logit_length[i]=9` is also processed to `(0,3,2,2)`, where `C=5`. @@ -57,25 +57,25 @@ Having log-probabilities for aligned paths, log of summed up probabilities for t * *preprocess_collapse_repeated* * **Description**: *preprocess_collapse_repeated* is a flag for a preprocessing step before loss calculation, wherein repeated labels in `labels[i,:]` passed to the loss are merged into single labels. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* * *ctc_merge_repeated* * **Description**: *ctc_merge_repeated* is a flag for merging repeated characters in a potential alignment during the CTC loss calculation. - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: True + * **Default value**: true * **Required**: *no* * *unique* - * **Description**: *unique* is a flag to find unique elements for a target `labels[i,:]` before matching with potential alignments. Unique elements in the processed `labels[i,:]` are sorted in the order of their occurrence in original `labels[i,:]`. For example, the processed sequence for `labels[i,:]=(0,1,1,0,1,3,3,2,2,3)` of length `label_length[i]=10` will be `(0,1,3,2)` in case *unique* equal to True. - * **Range of values**: True or False + * **Description**: *unique* is a flag to find unique elements for a target `labels[i,:]` before matching with potential alignments. Unique elements in the processed `labels[i,:]` are sorted in the order of their occurrence in original `labels[i,:]`. For example, the processed sequence for `labels[i,:]=(0,1,1,0,1,3,3,2,2,3)` of length `label_length[i]=10` will be `(0,1,3,2)` in case *unique* equal to true. + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** diff --git a/docs/ops/sequence/GRUCell_3.md b/docs/ops/sequence/GRUCell_3.md index 19778c8bbd6..c154c686238 100644 --- a/docs/ops/sequence/GRUCell_3.md +++ b/docs/ops/sequence/GRUCell_3.md @@ -43,9 +43,9 @@ * *linear_before_reset* * **Description**: *linear_before_reset* flag denotes if the layer behaves according to the modification of *GRUCell* described in the formula in the [ONNX documentation](https://github.com/onnx/onnx/blob/master/docs/Operators.md#GRU). - * **Range of values**: True or False + * **Range of values**: true or false * **Type**: `boolean` - * **Default value**: False + * **Default value**: false * **Required**: *no* **Inputs** diff --git a/docs/ops/sort/NonMaxSuppression_1.md b/docs/ops/sort/NonMaxSuppression_1.md index 5ed2d93730a..eb9aae89aeb 100644 --- a/docs/ops/sort/NonMaxSuppression_1.md +++ b/docs/ops/sort/NonMaxSuppression_1.md @@ -32,11 +32,11 @@ class must not exceed `max_output_boxes_per_class`. * *sort_result_descending* * **Description**: *sort_result_descending* is a flag that specifies whenever it is necessary to sort selected boxes across batches or not. - * **Range of values**: True of False - * *True* - sort selected boxes across batches. - * *False* - do not sort selected boxes across batches (boxes are sorted per class). + * **Range of values**: true of false + * *true* - sort selected boxes across batches. + * *false* - do not sort selected boxes across batches (boxes are sorted per class). * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* **Inputs**: diff --git a/docs/ops/sort/NonMaxSuppression_3.md b/docs/ops/sort/NonMaxSuppression_3.md index 04a22511593..a92e30ac686 100644 --- a/docs/ops/sort/NonMaxSuppression_3.md +++ b/docs/ops/sort/NonMaxSuppression_3.md @@ -32,11 +32,11 @@ class must not exceed `max_output_boxes_per_class`. * *sort_result_descending* * **Description**: *sort_result_descending* is a flag that specifies whenever it is necessary to sort selected boxes across batches or not. - * **Range of values**: True of False - * *True* - sort selected boxes across batches. - * *False* - do not sort selected boxes across batches (boxes are sorted per class). + * **Range of values**: true of false + * *true* - sort selected boxes across batches. + * *false* - do not sort selected boxes across batches (boxes are sorted per class). * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* * *output_type* diff --git a/docs/ops/sort/NonMaxSuppression_4.md b/docs/ops/sort/NonMaxSuppression_4.md index ec6558a9395..e8fb7f842f0 100644 --- a/docs/ops/sort/NonMaxSuppression_4.md +++ b/docs/ops/sort/NonMaxSuppression_4.md @@ -32,11 +32,11 @@ class must not exceed `max_output_boxes_per_class`. * *sort_result_descending* * **Description**: *sort_result_descending* is a flag that specifies whenever it is necessary to sort selected boxes across batches or not. - * **Range of values**: True of False - * *True* - sort selected boxes across batches. - * *False* - do not sort selected boxes across batches (boxes are sorted per class). + * **Range of values**: true of false + * *true* - sort selected boxes across batches. + * *false* - do not sort selected boxes across batches (boxes are sorted per class). * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* * *output_type* diff --git a/docs/ops/sort/NonMaxSuppression_5.md b/docs/ops/sort/NonMaxSuppression_5.md index 6fc70ed7424..75d6881f216 100644 --- a/docs/ops/sort/NonMaxSuppression_5.md +++ b/docs/ops/sort/NonMaxSuppression_5.md @@ -37,11 +37,11 @@ class must not exceed `max_output_boxes_per_class`. * *sort_result_descending* * **Description**: *sort_result_descending* is a flag that specifies whenever it is necessary to sort selected boxes across batches or not. - * **Range of values**: True of False - * *True* - sort selected boxes across batches. - * *False* - do not sort selected boxes across batches (boxes are sorted per class). + * **Range of values**: true of false + * *true* - sort selected boxes across batches. + * *false* - do not sort selected boxes across batches (boxes are sorted per class). * **Type**: boolean - * **Default value**: True + * **Default value**: true * **Required**: *no* * *output_type*