Skip to content

Commit

Permalink
Merge branch 'master' into fix_for_failing_roblox_model_at_convert_pr…
Browse files Browse the repository at this point in the history
…ecision
  • Loading branch information
mlukasze authored Oct 29, 2024
2 parents af971a3 + c7d8e03 commit c992d99
Show file tree
Hide file tree
Showing 137 changed files with 4,746 additions and 524 deletions.
4 changes: 2 additions & 2 deletions .github/actions/smart-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ inputs:
components_config_schema:
description: "Path to the schema file for components configuration"
required: false
default: ".github/actions/smart-ci/components_schema.yml"
labeler_config:
description: "Path to labeler configuration file"
required: false
Expand Down Expand Up @@ -101,11 +100,12 @@ runs:
-f "${{ inputs.ref_name }}" \
-p "${{ inputs.component_pattern }}" \
-c "${{ inputs.components_config }}" \
-m "${{ inputs.components_config_schema }}" \
-m "${{ inputs.components_config_schema || env.DEFAULT_CONFIG_SCHEMA }}" \
-l "${{ inputs.labeler_config }}" \
--enable_for_org "${{ inputs.enable_for_org }}" \
--skip-when-only-listed-labels-set "${{ inputs.skip_when_only_listed_labels_set }}" \
--skip-when-only-listed-files-changed "${{ inputs.skip_when_only_listed_files_changed }}"
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.repo_token }}
DEFAULT_CONFIG_SCHEMA: "${{ github.action_path }}/components_schema.yml"
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Operation Specifications
Sin-1 <operation-specs/arithmetic/sin-1>
Sinh-1 <operation-specs/arithmetic/sinh-1>
Slice-8 <operation-specs/movement/slice-8>
SliceScatter <operation-specs/movement/slice-scatter-15>
SliceScatter-15 <operation-specs/movement/slice-scatter-15>
SoftMax-1 <operation-specs/activation/softmax-1>
SoftMax-8 <operation-specs/activation/softmax-8>
SoftPlus-4 <operation-specs/activation/softplus-4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Short Time Fourier Transformation for real-valued input (STFT)
**Short description**: *STFT* operation performs Short-Time Fourier Transform (real-to-complex).


**Detailed description**: *STFT* performs Short-Time Fourier Transform of real-valued batched input tensor of shape ``[batch, signal_size]``, and produces complex result represented by separate values for real and imaginary part.
**Detailed description**: *STFT* performs Short-Time Fourier Transform of real-valued input tensor of shape ``[signal_size]`` or ``[batch, signal_size]``, and produces complex result represented by separate values for real and imaginary part.


**Attributes**:

* *transform_frames*
* *transpose_frames*

* **Description**: Flag to set output shape layout. If true the ``frames`` dimension is at out_shape[2], otherwise it is at out_shape[1].
* **Description**: Flag to set output shape layout. If true the ``frames`` dimension is at out_shape[-2], otherwise it is at out_shape[-3].
* **Range of values**:

* ``false`` - do not transpose output shape
Expand All @@ -31,7 +31,7 @@ Short Time Fourier Transformation for real-valued input (STFT)

**Inputs**

* **1**: ``signal`` - Tensor of type *T* and 2D shape [batch, signal_size] with signal data for the STFT. **Required.**
* **1**: ``signal`` - Tensor of type *T* and 1D shape [signal_size] or 2D shape [batch, signal_size] with signal data for the STFT. **Required.**
* **2**: ``window`` - Tensor of type *T* and 1D shape [window_length], specifying the window values for the signal slice multiplication. **Required.**
* **3**: ``frame_size`` - Scalar tensor of type *T_INT* describing the size of a single frame of the signal to be provided as input to FFT. **Required.**
* **4**: ``frame_step`` - Scalar tensor of type *T_INT* describing The distance (number of samples) between successive frames. **Required.**
Expand All @@ -41,13 +41,13 @@ Short Time Fourier Transformation for real-valued input (STFT)

* **1**: The result of STFT operation, tensor of the same type as input ``signal`` tensor and shape:

+ When ``transform_frames == false`` the output shape is ``[batch, frames, fft_results, 2]``
+ When ``transform_frames == true`` the output shape is ``[batch, fft_results, frames, 2]``
+ When ``transpose_frames == false`` the output shape is ``[frames, fft_results, 2]`` for 1D signal input or [batch, frames, fft_results, 2] for 2D signal input.
+ When ``transpose_frames == true`` the output shape is [fft_results, frames, 2] for 1D signal input or [batch, fft_results, frames, 2]`` for 2D signal input.

where:

+ ``batch`` is a batch size dimension
+ ``frames`` is a number calculated as ``(signal_shape[1] - frame_size) / frame_step) + 1``
+ ``frames`` is a number calculated as ``(signal_shape[-1] - frame_size) / frame_step) + 1``
+ ``fft_results`` is a number calculated as ``(frame_size / 2) + 1``
+ ``2`` is the last dimension is for complex value real and imaginary part

Expand All @@ -59,27 +59,109 @@ Short Time Fourier Transformation for real-valued input (STFT)
* *T_INT*: ``int64`` or ``int32``.


**Example**:
**Examples**:

*Example 1D signal, transpose_frames=false: *
.. code-block:: xml
:force:
<layer ... type="STFT" ... >
<data transpose_frames="false"/>
<input>
<port id="0">
<dim>56</dim>
</port>
<port id="1">
<dim>7</dim>
</port>
<port id="2"></port> <!-- value: 11 -->
<port id="3"></port> <!-- value: 3 -->
<output>
<port id="4">
<dim>16</dim>
<dim>6</dim>
<dim>2</dim>
<dim>48</dim>
</port>
</output>
</layer>
*Example 1D signal, transpose_frames=true: *
.. code-block:: xml
:force:
<layer ... type="STFT" ... >
<data transpose_frames="true"/>
<input>
<port id="0">
<dim>56</dim>
</port>
<port id="1">
<dim>8</dim>
<dim>7</dim>
</port>
<port id="2"></port>
<port id="3"></port>
<port id="2"></port> <!-- value: 11 -->
<port id="3"></port> <!-- value: 3 -->
<output>
<port id="2">
<port id="4">
<dim>6</dim>
<dim>16</dim>
<dim>2</dim>
<dim>9</dim>
<dim>9</dim>
</port>
</output>
</layer>
*Example 2D signal, transpose_frames=false: *
.. code-block:: xml
:force:
<layer ... type="STFT" ... >
<data transpose_frames="false"/>
<input>
<port id="0">
<dim>3</dim>
<dim>56</dim>
</port>
<port id="1">
<dim>7</dim>
</port>
<port id="2"></port> <!-- value: 11 -->
<port id="3"></port> <!-- value: 3 -->
<output>
<port id="4">
<dim>3</dim>
<dim>16</dim>
<dim>6</dim>
<dim>2</dim>
</port>
</output>
</layer>
*Example 2D signal, transpose_frames=true: *
.. code-block:: xml
:force:
<layer ... type="STFT" ... >
<data transpose_frames="true"/>
<input>
<port id="0">
<dim>3</dim>
<dim>56</dim>
</port>
<port id="1">
<dim>7</dim>
</port>
<port id="2"></port> <!-- value: 11 -->
<port id="3"></port> <!-- value: 3 -->
<output>
<port id="4">
<dim>3</dim>
<dim>6</dim>
<dim>16</dim>
<dim>2</dim>
</port>
</output>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,40 @@ SearchSorted

**Attributes**

* *right*
* *right_mode*

* **Description**: If False, set the first suitable index. If True, return the last suitable index for given value. Default is False.
* **Range of values**: true or false
* **Type**: boolean
* **Description**: flag to control whether output would contain leftmost or rightmost indices for given values.
* **Range of values**:

* *true* - return the rightmost (last) suitable index for given value.
* *false* - return the leftmost (first) suitable index for given value.
* **Type**: ``boolean``
* **Default value**: false
* **Required**: *no*

**Inputs**:

* **1**: ``sorted`` - ND input tensor of type *T* - cannot be a scalar, containing monotonically increasing sequence on the innermost dimension. **Required.**
* **1**: ``sorted_sequence`` - ND input tensor of type *T* - cannot be a scalar, containing monotonically increasing sequence on the innermost dimension. **Required.**

* **2**: ``values`` - ND input tensor of type *T*, containing the search values. If sorted sequence is 1D, then the values can have any shape, otherwise the rank should be equal to the rank of sorted input. **Required.**

**Outputs**:

* **1**: Tensor of type *TOut*, with the same shape as second input tensor, containing the indices.
* **1**: Tensor of type *T_IND*, with the same shape as second input tensor ``values``, containing the indices.

**Types**

* *T*: any supported floating-point and integer type.

* *TOut*: int64.
* *T_IND*: ``int64``.

**Example**

.. code-block:: xml
:force:
<layer ... type="SearchSorted" ... >
<data right="True"/>
<data right_mode="true"/>
<input>
<port id="0">
<dim>7</dim>
Expand All @@ -63,7 +66,7 @@ SearchSorted
</port>
</input>
<output>
<port id="0" precision="I64">
<port id="2" precision="I64">
<dim>7</dim>
<dim>256</dim>
<dim>200</dim>
Expand Down
74 changes: 74 additions & 0 deletions docs/dev/ci/commit_signoff_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# How to sign-off commits

We require a sign-off commit message in the following format on each commit in pull request.

```
This is a commit message.
Signed-off-by: Author Name <[email protected]>
```

## How to sign-off new commits

In a local Git environment, the sign-off message can be added to a commit either manually (as a text)
or via the **-s** flag used with the “git commit” command, for example:

`git commit -s -m "My commit message"`

To avoid manually adding the flag for each commit, we recommend setting up a Git hook with the following steps:

1. Navigate to the `<openvino repository root>/.git/hooks` folder.
2. Open the `prepare-commit-msg.sample` file and paste the following content:

```
#!/bin/sh
COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3
NAME=$(git config user.name)
EMAIL=$(git config user.email)
if [ -z "$NAME" ]; then
echo "empty git config user.name"
exit 1
fi
if [ -z "$EMAIL" ]; then
echo "empty git config user.email"
exit 1
fi
git interpret-trailers --if-exists doNothing --trailer \
"Signed-off-by: $NAME <$EMAIL>" \
--in-place "$1"
```

3. Save the file with the name `prepare-commit-msg` (remove the .sample extension).
4. Make the file executable (on Linux / Git Bash: `chmod +x <openvino repository root>/.git/hooks/prepare-commit-msg`).

**Note**: For both sign-off approaches, ensure your user name and email address are configured in Git first:

```
git config user.name 'FIRST_NAME LAST_NAME'
git config user.email '[email protected]'
```

### Sign-off web-based commits

To enable automatic sign-off of commits made via GitHub web interface, make sure that
[Require contributors to sign off on web-based commits](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-the-commit-signoff-policy-for-your-repository#enabling-or-disabling-compulsory-commit-signoffs-for-your-repository)
setting is selected in the Settings menu of your OpenVINO repository fork.

## How to sign-off older commits in the history

If you forget to add the sign-off to your last commit, you can amend it and force-push to GitHub:

```
git commit --amend --signoff
```

To sign off on even older commits, use an interactive rebase, edit unsigned commits, and execute
`git commit --amend --signoff` for each. However, please note that if others have already started working based on
the commits in this branch, this will rewrite history and may cause issues for collaborators.
Loading

0 comments on commit c992d99

Please sign in to comment.