From 7d810fc66fdf8d71a36af50468960b220912aee5 Mon Sep 17 00:00:00 2001 From: p-wysocki Date: Thu, 12 Dec 2024 15:08:47 +0100 Subject: [PATCH 01/12] Initial draft Signed-off-by: p-wysocki --- .../sparse/fill-empty-rows-16.rst | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst new file mode 100644 index 00000000000000..9939ea32d15608 --- /dev/null +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -0,0 +1,103 @@ +FillEmptyRows +====================== + + +.. meta:: + :description: Learn about FillEmptyRows-16 - a sparse operation, which + can be performed on four required and two optional input tensors, depending + on the type of data provided to the op. + +**Versioned name**: *FillEmptyRows-16* + +**Category**: *Sparse* + +**Short description**: Fills empty rows of an input sparse tensor with a default value. + +**Detailed description**: + +Operation FillEmptyRows is an implementation of ``tf.sparse.fill_empty_rows``. + +For each row in the input sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index [row, 0]. The input may have empty columns at the end, which will not be affected by this operation. + +The output sparse tensor will be in row-major order and will have the same shape as the input. + +This operator also returns an boolean vector indicating which rows were filled with the default value: ``empty_row_indicator[i] = True`` if row ``i`` was an empty row. + +The operation can be performed on four required and two optional input tensors, depending on the type of data provided to the op: + +* **If ``values`` is of numeric type** the ``begins`` and ``ends`` inputs are ignored. The operator has 4 outputs. +* **If ``values`` is of bytes type** the ``begins`` and ``ends`` inputs are required and they, along with ``values``, should be in form of outputs of a ``StringTensorUnpack`` operator. The operator has 6 outputs. + +**Attributes**: FillEmptyRows-16 operation has no attributes. + +**Inputs**: + +* **1**: ``default_value`` a scalar of type *T* to be inserted into the empty rows. **Required.** +* **2**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. **Required.** +* **3**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the dense tensor. **Required.** +* **4**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** + It is of shape ``[M, N]``, where: + + * ``M`` is the same as length of the ``values`` input. + * ``N`` is equal to the rank of ``dense_shape``. +* **5**: ``begins`` ND tensor of non-negative integer numbers of type *T_IDX*, containing indices of each string's beginnings. **Required if ``values`` is of type bytes.** +* **6**: ``ends`` ND tensor of non-negative integer numbers of type *T_IDX*, containing indices of each string's endings. **Required if ``values`` is of type bytes.** + +**Outputs**: + +* **1**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. +* **2**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the dense tensor. +* **3**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. + It is of shape ``[M, N]``, where: + + * ``M`` is the same as length of the ``values`` input. + * ``N`` is equal to the rank of ``dense_shape``. +* **4**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. +* **5**: ``begins`` tensor of non-negative integer numbers of type *T_IDX*, containing new indices of each string's beginnings. **Only if ``values`` input is of bytes type.** +* **6**: ``ends`` tensor of non-negative integer numbers of type *T_IDX*, containing new indices of each string's ends. **Only if ``values`` input is of bytes type.** + +**Types** + +* *T*: any numeric type or bytes. +* *T_IDX*: ``int32`` or ``int64``. + +**Example** + +*Example 1: ``values`` is of type ``FP32``.* + +.. code-block:: xml + + + + + 0 + + + 2 + + + 2 + + + 2 + 2 + + + + + 3 + + + 2 + + + 3 + 2 + + + 3 + + + + +*Example 2: ``values`` is of type ``U8``.* TODO: figure out how to represent sparse unpacked strings From f5f4d8e992e7f917057f4682ddbcd20cbab3d4ff Mon Sep 17 00:00:00 2001 From: p-wysocki Date: Tue, 25 Mar 2025 17:16:40 +0100 Subject: [PATCH 02/12] Update rst Signed-off-by: p-wysocki --- .../sparse/fill-empty-rows-16.rst | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 9939ea32d15608..6cf99a63a71cd9 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -4,8 +4,7 @@ FillEmptyRows .. meta:: :description: Learn about FillEmptyRows-16 - a sparse operation, which - can be performed on four required and two optional input tensors, depending - on the type of data provided to the op. + can be performed on four required input tensors. **Versioned name**: *FillEmptyRows-16* @@ -17,16 +16,17 @@ FillEmptyRows Operation FillEmptyRows is an implementation of ``tf.sparse.fill_empty_rows``. -For each row in the input sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index [row, 0]. The input may have empty columns at the end, which will not be affected by this operation. +The input sparse tensor is represented by the three inputs: -The output sparse tensor will be in row-major order and will have the same shape as the input. +* ``indices`` +* ``values`` +* ``dense_shape`` -This operator also returns an boolean vector indicating which rows were filled with the default value: ``empty_row_indicator[i] = True`` if row ``i`` was an empty row. +For each row in the input sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index `[row, 0, ..., 0]`. The input may have empty columns at the end, which will not be affected by this operation. -The operation can be performed on four required and two optional input tensors, depending on the type of data provided to the op: +The output sparse tensor will be in row-major order and will have the same shape as the input, but with updated `output_indices` and `output_values`. -* **If ``values`` is of numeric type** the ``begins`` and ``ends`` inputs are ignored. The operator has 4 outputs. -* **If ``values`` is of bytes type** the ``begins`` and ``ends`` inputs are required and they, along with ``values``, should be in form of outputs of a ``StringTensorUnpack`` operator. The operator has 6 outputs. +This operator also returns a boolean vector indicating which rows were filled with the default value: ``empty_row_indicator[i] = True`` if row ``i`` was an empty row. **Attributes**: FillEmptyRows-16 operation has no attributes. @@ -38,32 +38,41 @@ The operation can be performed on four required and two optional input tensors, * **4**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** It is of shape ``[M, N]``, where: - * ``M`` is the same as length of the ``values`` input. + * ``M`` is the same as the length of the ``values`` input. * ``N`` is equal to the rank of ``dense_shape``. -* **5**: ``begins`` ND tensor of non-negative integer numbers of type *T_IDX*, containing indices of each string's beginnings. **Required if ``values`` is of type bytes.** -* **6**: ``ends`` ND tensor of non-negative integer numbers of type *T_IDX*, containing indices of each string's endings. **Required if ``values`` is of type bytes.** **Outputs**: -* **1**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. -* **2**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the dense tensor. -* **3**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. - It is of shape ``[M, N]``, where: +* **1**: ``output_indices`` 2D tensor of type *T_IDX* indicating the positions at which ``output_values`` are placed in the sparse tensor. + It is of shape ``[M', N]``, where: - * ``M`` is the same as length of the ``values`` input. + * ``M'`` is the length of the updated ``output_values``. * ``N`` is equal to the rank of ``dense_shape``. -* **4**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. -* **5**: ``begins`` tensor of non-negative integer numbers of type *T_IDX*, containing new indices of each string's beginnings. **Only if ``values`` input is of bytes type.** -* **6**: ``ends`` tensor of non-negative integer numbers of type *T_IDX*, containing new indices of each string's ends. **Only if ``values`` input is of bytes type.** +* **2**: ``output_values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. +* **3**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. **Types** -* *T*: any numeric type or bytes. +* *T*: any numeric type. * *T_IDX*: ``int32`` or ``int64``. **Example** -*Example 1: ``values`` is of type ``FP32``.* +*Example 1: sparse tensor input with shape [5, 6].* + +Input sparse tensor: + +* ``indices = [[0, 1], [0, 3], [2, 0], [3, 1]]`` +* ``values = [a, b, c, d]`` +* ``dense_shape = [5, 6]`` + +Rows 1 and 4 are empty. The output sparse tensor will be: + +* ``output_indices = [[0, 1], [0, 3], [1, 0], [2, 0], [3, 1], [4, 0]]`` +* ``output_values = [a, b, default_value, c, d, default_value]`` +* ``empty_row_indicator = [False, True, False, False, True]`` + +The output sparse tensor will be in row-major order and will have the same shape as the input. .. code-block:: xml @@ -84,20 +93,15 @@ The operation can be performed on four required and two optional input tensors, - + 3 - - 2 - + 3 - 2 - + 3 - -*Example 2: ``values`` is of type ``U8``.* TODO: figure out how to represent sparse unpacked strings From 2816e143590c84f949352146747e743976b38fa2 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Fri, 11 Apr 2025 12:41:34 +0200 Subject: [PATCH 03/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst Co-authored-by: Katarzyna Mitrus --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 6cf99a63a71cd9..30569bb8494b0e 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -24,7 +24,7 @@ The input sparse tensor is represented by the three inputs: For each row in the input sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index `[row, 0, ..., 0]`. The input may have empty columns at the end, which will not be affected by this operation. -The output sparse tensor will be in row-major order and will have the same shape as the input, but with updated `output_indices` and `output_values`. +The output sparse tensor will be in row-major order and will have the same dense shape as the `dense_shape` input, but with updated `output_indices` and `output_values`. This operator also returns a boolean vector indicating which rows were filled with the default value: ``empty_row_indicator[i] = True`` if row ``i`` was an empty row. From 84154894bb6399deca565cadb4a249670cb33eff Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Fri, 11 Apr 2025 12:42:37 +0200 Subject: [PATCH 04/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst Co-authored-by: Roman Kazantsev --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 30569bb8494b0e..8f700cf6735747 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -14,7 +14,7 @@ FillEmptyRows **Detailed description**: -Operation FillEmptyRows is an implementation of ``tf.sparse.fill_empty_rows``. +Operation FillEmptyRows is an implementation of ``tf.raw_ops.SparseFillEmptyRows``. The input sparse tensor is represented by the three inputs: From 06c0dd0e1ae093cc2ff0287903e604d18928f90e Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Fri, 11 Apr 2025 12:42:45 +0200 Subject: [PATCH 05/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst Co-authored-by: Katarzyna Mitrus --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 8f700cf6735747..a513dc498cc6d3 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -72,7 +72,7 @@ Rows 1 and 4 are empty. The output sparse tensor will be: * ``output_values = [a, b, default_value, c, d, default_value]`` * ``empty_row_indicator = [False, True, False, False, True]`` -The output sparse tensor will be in row-major order and will have the same shape as the input. +The output sparse tensor will be in row-major order and will have the same dense shape as the `dense_shape` input. .. code-block:: xml From 0d4c5c2aedd945052e18ccee24264058cd351255 Mon Sep 17 00:00:00 2001 From: p-wysocki Date: Fri, 11 Apr 2025 13:03:38 +0200 Subject: [PATCH 06/12] Apply CR Signed-off-by: p-wysocki --- .../sparse/fill-empty-rows-16.rst | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index a513dc498cc6d3..58af25f1078773 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -14,7 +14,7 @@ FillEmptyRows **Detailed description**: -Operation FillEmptyRows is an implementation of ``tf.raw_ops.SparseFillEmptyRows``. +Operation FillEmptyRows is an implementation of ``tf.raw_ops.SparseFillEmptyRows`` for 2D sparse tensors only. The input sparse tensor is represented by the three inputs: @@ -22,7 +22,7 @@ The input sparse tensor is represented by the three inputs: * ``values`` * ``dense_shape`` -For each row in the input sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index `[row, 0, ..., 0]`. The input may have empty columns at the end, which will not be affected by this operation. +For each row in the input 2D sparse tensor, this operator checks if the row is empty. If the row is empty, the operator adds an entry with the specified default value at index `[row, 0]`. The input may have empty columns at the end, which will not be affected by this operation. The output sparse tensor will be in row-major order and will have the same dense shape as the `dense_shape` input, but with updated `output_indices` and `output_values`. @@ -32,22 +32,22 @@ This operator also returns a boolean vector indicating which rows were filled wi **Inputs**: -* **1**: ``default_value`` a scalar of type *T* to be inserted into the empty rows. **Required.** -* **2**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. **Required.** -* **3**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the dense tensor. **Required.** -* **4**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** - It is of shape ``[M, N]``, where: +* **1**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. **Required.** +* **2**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the 2D dense tensor. **Required.** +* **3**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** + It is of shape ``[M, 2]``, where: * ``M`` is the same as the length of the ``values`` input. - * ``N`` is equal to the rank of ``dense_shape``. + * The second dimension is always 2, as only 2D sparse tensors are supported. +* **4**: ``default_value`` a scalar of type *T* to be inserted into the empty rows. **Required.** **Outputs**: * **1**: ``output_indices`` 2D tensor of type *T_IDX* indicating the positions at which ``output_values`` are placed in the sparse tensor. - It is of shape ``[M', N]``, where: + It is of shape ``[M', 2]``, where: * ``M'`` is the length of the updated ``output_values``. - * ``N`` is equal to the rank of ``dense_shape``. + * The second dimension is always 2, as only 2D sparse tensors are supported. * **2**: ``output_values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. * **3**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. @@ -78,19 +78,19 @@ The output sparse tensor will be in row-major order and will have the same dense - - 0 - - + 2 - + 2 - + 2 2 + + 0 + From 0c9d8843aa16f68dea38649d12cb5cdfe90c901c Mon Sep 17 00:00:00 2001 From: p-wysocki Date: Tue, 15 Apr 2025 12:44:01 +0200 Subject: [PATCH 07/12] Add sparse prefix Signed-off-by: p-wysocki --- .../operation-specs/sparse/fill-empty-rows-16.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 58af25f1078773..572c9d5fc82275 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -1,12 +1,12 @@ -FillEmptyRows +SparseFillEmptyRows ====================== .. meta:: - :description: Learn about FillEmptyRows-16 - a sparse operation, which + :description: Learn about SparseFillEmptyRows-16 - a sparse operation, which can be performed on four required input tensors. -**Versioned name**: *FillEmptyRows-16* +**Versioned name**: *SparseFillEmptyRows-16* **Category**: *Sparse* @@ -14,7 +14,7 @@ FillEmptyRows **Detailed description**: -Operation FillEmptyRows is an implementation of ``tf.raw_ops.SparseFillEmptyRows`` for 2D sparse tensors only. +Operation SparseFillEmptyRows is an implementation of ``tf.raw_ops.SparseFillEmptyRows`` for 2D sparse tensors only. The input sparse tensor is represented by the three inputs: @@ -28,7 +28,7 @@ The output sparse tensor will be in row-major order and will have the same dense This operator also returns a boolean vector indicating which rows were filled with the default value: ``empty_row_indicator[i] = True`` if row ``i`` was an empty row. -**Attributes**: FillEmptyRows-16 operation has no attributes. +**Attributes**: SparseFillEmptyRows-16 operation has no attributes. **Inputs**: @@ -76,7 +76,7 @@ The output sparse tensor will be in row-major order and will have the same dense .. code-block:: xml - + 2 From b3070b7e30228643c1efad110af89e81077ea50d Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Tue, 15 Apr 2025 13:06:58 +0200 Subject: [PATCH 08/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 572c9d5fc82275..078f88647f5424 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -46,7 +46,7 @@ This operator also returns a boolean vector indicating which rows were filled wi * **1**: ``output_indices`` 2D tensor of type *T_IDX* indicating the positions at which ``output_values`` are placed in the sparse tensor. It is of shape ``[M', 2]``, where: - * ``M'`` is the length of the updated ``output_values``. + * ``M`` is the length of the updated ``output_values``. * The second dimension is always 2, as only 2D sparse tensors are supported. * **2**: ``output_values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. * **3**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. From 025966a7603b32caec6fb5c88803a792b980136d Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Fri, 18 Apr 2025 13:03:07 +0200 Subject: [PATCH 09/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst Co-authored-by: Roman Kazantsev --- .../operation-sets/operation-specs/sparse/fill-empty-rows-16.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 078f88647f5424..66d95a1bfc2d7b 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -39,6 +39,7 @@ This operator also returns a boolean vector indicating which rows were filled wi * ``M`` is the same as the length of the ``values`` input. * The second dimension is always 2, as only 2D sparse tensors are supported. + * **4**: ``default_value`` a scalar of type *T* to be inserted into the empty rows. **Required.** **Outputs**: From 1bd2996ba5ecb7abc50c34999f6fdaf852fdc1c2 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Fri, 18 Apr 2025 14:28:36 +0200 Subject: [PATCH 10/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst Co-authored-by: Roman Kazantsev --- .../operation-sets/operation-specs/sparse/fill-empty-rows-16.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 66d95a1bfc2d7b..c349b4ef3207ce 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -49,6 +49,7 @@ This operator also returns a boolean vector indicating which rows were filled wi * ``M`` is the length of the updated ``output_values``. * The second dimension is always 2, as only 2D sparse tensors are supported. + * **2**: ``output_values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. * **3**: ``empty_row_indicator`` 1D tensor of type ``boolean`` indicating True for rows which were empty before executing the operation. From f459a3e8418a2409e5fea5f742edd7da9a87e54c Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Thu, 24 Apr 2025 14:41:33 +0200 Subject: [PATCH 11/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index c349b4ef3207ce..102b698cf51c4e 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -47,7 +47,7 @@ This operator also returns a boolean vector indicating which rows were filled wi * **1**: ``output_indices`` 2D tensor of type *T_IDX* indicating the positions at which ``output_values`` are placed in the sparse tensor. It is of shape ``[M', 2]``, where: - * ``M`` is the length of the updated ``output_values``. + * ``M'`` is the length of the updated ``output_values``. * The second dimension is always 2, as only 2D sparse tensors are supported. * **2**: ``output_values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. From bdc85a0abcb7aa908778f80faf3d581e9620d6b2 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wysocki Date: Tue, 6 May 2025 13:05:37 +0200 Subject: [PATCH 12/12] Update docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst --- .../operation-specs/sparse/fill-empty-rows-16.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst index 102b698cf51c4e..6ce391c7fc6dd3 100644 --- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst +++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/sparse/fill-empty-rows-16.rst @@ -34,7 +34,7 @@ This operator also returns a boolean vector indicating which rows were filled wi * **1**: ``values`` 1D tensor containing the values of type *T* to be inserted at the specified indices. **Required.** * **2**: ``dense_shape`` 1D tensor of type *T_IDX* indicating the shape of the 2D dense tensor. **Required.** -* **3**: ``indices`` 2D tensor of type *T_IDX* indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** +* **3**: ``indices`` 2D tensor of type *T_IDX* and non-negative values indicating the positions at which ``values`` are placed in the sparse tensor. **Required.** It is of shape ``[M, 2]``, where: * ``M`` is the same as the length of the ``values`` input.