diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index 1dc77e89521bfe..6e17dfb246030a 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-27882
+pr-25673
diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile
index 5911016b37d008..8b955def2aec00 100644
--- a/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile
+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_riscv/Dockerfile
@@ -62,10 +62,13 @@ RUN echo deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricte
RUN dpkg --add-architecture riscv64 && \
apt-get update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/riscv64-sources.list && \
- apt-get install -y --no-install-recommends libpython3-dev:riscv64
+ apt-get install -y --no-install-recommends libpython3-dev:riscv64 && \
+ apt-get install libgomp1:riscv64 && \
+ apt-get install libatomic1:riscv64
# Setup pip
ENV PIP_VERSION="24.0"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3 get-pip.py --no-cache-dir pip==${PIP_VERSION} && \
rm -f get-pip.py
+
diff --git a/.github/scripts/workflow_rerun/errors_to_look_for.json b/.github/scripts/workflow_rerun/errors_to_look_for.json
index b9cac8f17adaa6..d8fe6ac2df03d2 100644
--- a/.github/scripts/workflow_rerun/errors_to_look_for.json
+++ b/.github/scripts/workflow_rerun/errors_to_look_for.json
@@ -86,5 +86,25 @@
{
"error_text": "because the GET request got Content-Type",
"ticket": 158400
+ },
+ {
+ "error_text": "Unable to make request:",
+ "ticket": 158401
+ },
+ {
+ "error_text": "Failed to make request",
+ "ticket": 158401
+ },
+ {
+ "error_text": "Failure when receiving data from the peer",
+ "ticket": 159323
+ },
+ {
+ "error_text": "HTTP response code said error",
+ "ticket": 159398
+ },
+ {
+ "error_text": "download failed after attempts",
+ "ticket": 159547
}
]
\ No newline at end of file
diff --git a/.github/workflows/cleanup_caches.yml b/.github/workflows/cleanup_caches.yml
index d6633fd9dab3ee..c3aac30ccd4379 100644
--- a/.github/workflows/cleanup_caches.yml
+++ b/.github/workflows/cleanup_caches.yml
@@ -4,7 +4,7 @@ on:
schedule:
# at 00:00 on the 1st day of every month
- cron: '0 0 1 * *'
-
+
permissions: read-all
jobs:
@@ -61,8 +61,8 @@ jobs:
cache-path: ${{ env.CCACHE_PATH }}
recursive: true
key: '.'
-
-
+
+
Cleanup_ccache_win:
name: Cleanup Windows ccache
runs-on: 'aks-win-4-cores-8gb'
diff --git a/.github/workflows/dev_cpu_linux_riscv.yml b/.github/workflows/dev_cpu_linux_riscv.yml
new file mode 100644
index 00000000000000..daeb42149539f8
--- /dev/null
+++ b/.github/workflows/dev_cpu_linux_riscv.yml
@@ -0,0 +1,269 @@
+name: Linux RISC-V CPU workflow with Xuantie (Ubuntu 22.04, Python 3.10)
+
+on:
+ workflow_dispatch:
+ inputs:
+ testFilter:
+ description: 'Filter for google tests'
+ required: true
+ default: '*smoke_AdaPoolAvg4DLayoutTest*'
+ pull_request:
+ paths:
+ - '.github/workflows/dev_cpu_linux_riscv.yml'
+
+env:
+ CMAKE_GENERATOR: 'Ninja Multi-Config'
+ XUANTIE_BIN_PATH: /mount/testdata1
+ XUANTIE_DIR: /__w/openvino/xuantie
+ XUANTIE_TAR_NAME: 'Xuantie-900-gcc-linux-5.15.0-glibc-x86_64-V2.8.1'
+
+concurrency:
+ # github.ref is not unique in post-commit
+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-dev-cpu-linux-riscv
+ cancel-in-progress: true
+
+permissions: read-all
+
+jobs:
+ Smart_CI:
+ runs-on: ubuntu-latest
+ outputs:
+ affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
+ changed_components: "${{ steps.smart_ci.outputs.changed_components }}"
+ skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
+ steps:
+ - name: checkout action
+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ with:
+ sparse-checkout: .github/actions/smart-ci
+
+ - name: Get affected components
+ id: smart_ci
+ uses: ./.github/actions/smart-ci
+ with:
+ repository: ${{ github.repository }}
+ pr: ${{ github.event.number }}
+ commit_sha: ${{ github.sha }}
+ ref_name: ${{ github.ref_name }}
+ component_pattern: "category: (.*)"
+ repo_token: ${{ secrets.GITHUB_TOKEN }}
+ skip_when_only_listed_labels_set: 'docs'
+ skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
+
+ Docker:
+ needs: Smart_CI
+ runs-on: aks-linux-4-cores-16gb-docker-build
+ container:
+ image: openvinogithubactions.azurecr.io/docker_build:0.2
+ volumes:
+ - /mount:/mount
+ outputs:
+ images: "${{ steps.handle_docker.outputs.images }}"
+ steps:
+ - name: Checkout
+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+
+ - uses: ./.github/actions/handle_docker
+ id: handle_docker
+ with:
+ images: |
+ ov_build/ubuntu_22_04_riscv
+ registry: 'openvinogithubactions.azurecr.io'
+ dockerfiles_root_dir: '.github/dockerfiles'
+ changed_components: ${{ needs.smart_ci.outputs.changed_components }}
+
+ Build:
+ needs: [Smart_CI, Docker]
+ timeout-minutes: 150
+ defaults:
+ run:
+ shell: bash
+ runs-on: aks-linux-16-cores-32gb
+ container:
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}
+ volumes:
+ - /mount:/mount
+ env:
+ CMAKE_BUILD_TYPE: 'Release'
+ CMAKE_CXX_COMPILER_LAUNCHER: ccache
+ CMAKE_C_COMPILER_LAUNCHER: ccache
+ GITHUB_WORKSPACE: '/__w/openvino/openvino'
+ OPENVINO_REPO: /__w/openvino/openvino/openvino
+ INSTALL_DIR: /__w/openvino/openvino/openvino_install
+ INSTALL_TEST_DIR: /__w/openvino/openvino/tests_install
+ BUILD_DIR: /__w/openvino/openvino/openvino_build
+ CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64_xuantie/${{ github.base_ref || github.ref_name }}
+ CCACHE_DIR: /__w/openvino/openvino/ccache
+ CCACHE_TEMPDIR: /__w/openvino/openvino/ccache_temp
+ CCACHE_MAXSIZE: 2G
+ if: "!needs.smart_ci.outputs.skip_workflow"
+
+ steps:
+ - name: Clone OpenVINO
+ uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+ with:
+ path: ${{ env.OPENVINO_REPO }}
+ submodules: 'true'
+
+ #
+ # Print system info
+ #
+
+ - name: System info
+ uses: ./openvino/.github/actions/system_info
+
+ - name: Setup ccache
+ id: ccache_restore
+ uses: ./openvino/.github/actions/cache
+ with:
+ save-always: ${{ github.event_name == 'push' && 'true' || 'false' }}
+ cache-size: 10
+ max-cache-size: 50
+ cache-path: ${{ env.CCACHE_REMOTE_DIR }}
+ path: ${{ env.CCACHE_DIR }}
+ key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-${{ runner.arch }}-ccache
+
+ - name: Init XUANTIE
+ run: |
+ mkdir ${XUANTIE_DIR}
+ tar -xvf ${XUANTIE_BIN_PATH}/${XUANTIE_TAR_NAME}.tar -C ${XUANTIE_DIR}
+ chmod -R +x ${XUANTIE_DIR}/${XUANTIE_TAR_NAME}
+
+ - name: Clean ccache stats
+ run: ccache --zero-stats
+
+ - name: CMake configure - OpenVINO
+ run: |
+ cmake \
+ -G "${CMAKE_GENERATOR}" \
+ -DENABLE_CPPLINT=OFF \
+ -DENABLE_NCC_STYLE=OFF \
+ -DENABLE_TESTS=ON \
+ -DENABLE_INTEL_CPU=ON \
+ -DENABLE_INTEL_GPU=OFF \
+ -DENABLE_INTEL_NPU=OFF \
+ -DENABLE_SAMPLES=OFF \
+ -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake \
+ -DRISCV_TOOLCHAIN_ROOT=${XUANTIE_DIR}/${XUANTIE_TAR_NAME} \
+ -DENABLE_PYTHON=OFF \
+ -DENABLE_PYTHON_PACKAGING=ON \
+ -DENABLE_WHEEL=OFF \
+ -DENABLE_STRICT_DEPENDENCIES=OFF \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCPACK_GENERATOR=TGZ \
+ -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
+ -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
+ -S ${OPENVINO_REPO} \
+ -B ${BUILD_DIR}
+
+ - name: Cmake build - OpenVINO
+ run: cmake --build ${BUILD_DIR} --parallel $(nproc) --config ${{ env.CMAKE_BUILD_TYPE }}
+
+ - name: Show ccache stats
+ run: ccache --show-stats
+
+ - name: Cmake install - OpenVINO
+ run: |
+ cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake
+ cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake
+
+ - name: Pack Artifacts
+ run: |
+
+ pushd ${INSTALL_DIR}
+ tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
+ popd
+
+ pushd ${INSTALL_TEST_DIR}
+ tar -czvf ${BUILD_DIR}/openvino_tests.tar.gz *
+ popd
+
+ # #
+ # # Upload build artifacts
+ # #
+
+ - name: Upload openvino package
+ if: ${{ always() }}
+ uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
+ with:
+ name: openvino_package
+ path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
+ if-no-files-found: 'error'
+
+ - name: Upload openvino tests package
+ if: ${{ always() }}
+ uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
+ with:
+ name: openvino_tests
+ path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
+ if-no-files-found: 'error'
+
+ - name: Clean ccache
+ run: ccache --cleanup
+
+ CPU_Functional_Tests:
+ name: CPU functional tests
+ needs: [ Docker, Build, Smart_CI ]
+ timeout-minutes: 30
+ runs-on: aks-linux-4-cores-16gb
+ container:
+ image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}
+ volumes:
+ - /mount:/mount
+ defaults:
+ run:
+ shell: bash
+ env:
+ INSTALL_DIR: ${{ github.workspace }}/install
+ INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
+ GTEST_FILTER: ${{ github.event_name == 'workflow_dispatch' && inputs.testFilter || '*smoke_AdaPoolAvg4DLayoutTest*' }}
+
+ steps:
+ - name: Init XUANTIE
+ run: |
+ mkdir ${XUANTIE_DIR}
+ tar -xvf ${XUANTIE_BIN_PATH}/${XUANTIE_TAR_NAME}.tar -C ${XUANTIE_DIR}
+ chmod -R +x ${XUANTIE_DIR}/${XUANTIE_TAR_NAME}
+
+ - name: Download OpenVINO package
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
+ with:
+ name: openvino_package
+ path: ${{ env.INSTALL_DIR }}
+
+ - name: Download OpenVINO tests package
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
+ with:
+ name: openvino_tests
+ path: ${{ env.INSTALL_TEST_DIR }}
+
+ # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ - name: Setup Variables
+ run: |
+ echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
+ echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
+
+ - name: Extract OpenVINO packages
+ run: |
+ pushd $INSTALL_DIR
+ tar -xzf openvino_package.tar.gz -C $INSTALL_DIR
+ popd
+
+ pushd $INSTALL_TEST_DIR
+ tar -xzf openvino_tests.tar.gz -C $INSTALL_TEST_DIR
+ popd
+
+ - name: Intel CPU plugin func tests
+ run: |
+ # Needed as the Linux CC does not require setupvars to work
+ if [[ -f "${INSTALL_DIR}/setupvars.sh" ]]; then
+ source ${INSTALL_DIR}/setupvars.sh
+ fi
+ # Needed as ze_loader.so is under INSTALL_TEST_DIR
+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${INSTALL_TEST_DIR}/tests
+ ${XUANTIE_DIR}/${XUANTIE_TAR_NAME}/bin/qemu-riscv64 -cpu c910v ${INSTALL_TEST_DIR}/tests/ov_cpu_func_tests --gtest_filter=${{ env.GTEST_FILTER }} --gtest_print_time=1
+ timeout-minutes: 25
+
diff --git a/.github/workflows/export_workflow_metrics.yml b/.github/workflows/export_workflow_metrics.yml
index 39bb699b8caa91..aef00244f8175b 100644
--- a/.github/workflows/export_workflow_metrics.yml
+++ b/.github/workflows/export_workflow_metrics.yml
@@ -34,7 +34,7 @@ permissions: read-all
jobs:
export-workflow-metrics:
name: Export finished workflow metrics
- runs-on: aks-linux-2-cores-8gb
+ runs-on: aks-linux-2-cores-8gb-stats
if: ${{ github.repository_owner == 'openvinotoolkit' }}
steps:
diff --git a/.github/workflows/job_jax_layer_tests.yml b/.github/workflows/job_jax_layer_tests.yml
new file mode 100644
index 00000000000000..25f171060f43be
--- /dev/null
+++ b/.github/workflows/job_jax_layer_tests.yml
@@ -0,0 +1,133 @@
+name: JAX Layer Tests
+
+on:
+ workflow_call:
+ inputs:
+ runner:
+ description: 'Machine on which the tests would run'
+ type: string
+ required: true
+ container:
+ description: 'JSON to be converted to the value of the "container" configuration for the job'
+ type: string
+ required: false
+ default: '{"image": null}'
+ affected-components:
+ description: 'Components that are affected by changes in the commit defined by the Smart CI Action'
+ type: string
+ required: true
+ python-version:
+ description: 'Python version to setup. E.g., "3.11"'
+ type: string
+ required: true
+
+permissions: read-all
+
+env:
+ PIP_CACHE_PATH_LINUX: /mount/caches/pip/linux
+ PIP_CACHE_PATH_WIN: "C:\\mount\\caches\\pip\\win"
+
+jobs:
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ timeout-minutes: 40
+ runs-on: ${{ inputs.runner }}
+ container: ${{ fromJSON(inputs.container) }}
+ defaults:
+ run:
+ shell: ${{ contains(inputs.runner, 'win') && 'pwsh' || 'bash' }}
+ env:
+ DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
+ OPENVINO_REPO: ${{ github.workspace }}/openvino
+ INSTALL_DIR: ${{ github.workspace }}/install
+ INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
+ INSTALL_WHEELS_DIR: ${{ github.workspace }}/install/wheels
+ LAYER_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/layer_tests
+ steps:
+ - name: Download OpenVINO artifacts (tarballs)
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
+ with:
+ pattern: openvino_[tests]*
+ path: ${{ env.INSTALL_DIR }}
+ merge-multiple: true
+
+ - name: Download OpenVINO artifacts (wheels)
+ uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
+ with:
+ pattern: openvino_[wheels]*
+ path: ${{ env.INSTALL_WHEELS_DIR }}
+ merge-multiple: true
+
+ # Needed as ${{ github.workspace }} is not working correctly when using Docker
+ - name: Setup Variables
+ if: runner.os != 'Windows'
+ run: |
+ echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
+ echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
+ echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
+ echo "INSTALL_WHEELS_DIR=$GITHUB_WORKSPACE/install/wheels" >> "$GITHUB_ENV"
+ echo "LAYER_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/layer_tests" >> "$GITHUB_ENV"
+
+ - name: Install OpenVINO dependencies (mac)
+ if: runner.os == 'macOS'
+ run: brew install pigz
+
+ - name: Extract OpenVINO packages (Linux, macOS)
+ if: runner.os != 'Windows'
+ run: |
+ pigz -dc openvino_tests.tar.gz | tar -xf - -C ${INSTALL_DIR}
+ working-directory: ${{ env.INSTALL_DIR }}
+
+ - name: Extract OpenVINO artifacts (Windows)
+ if: runner.os == 'Windows'
+ run: |
+ Expand-Archive openvino_tests.zip -DestinationPath ${{ env.INSTALL_DIR }}
+ working-directory: ${{ env.INSTALL_DIR }}
+
+ - name: Fetch setup_python and install wheels actions
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
+ with:
+ sparse-checkout: |
+ .github/actions/setup_python/action.yml
+ .github/actions/install_ov_wheels/action.yml
+ sparse-checkout-cone-mode: false
+ path: 'openvino'
+
+ - name: Setup Python ${{ inputs.python-version }}
+ uses: ./openvino/.github/actions/setup_python
+ with:
+ version: ${{ inputs.python-version }}
+ pip-cache-path: ${{ runner.os == 'Linux' && env.PIP_CACHE_PATH_LINUX || env.PIP_CACHE_PATH_WIN }}
+ should-setup-pip-paths: ${{ runner.os != 'macOS' }}
+ self-hosted-runner: ${{ runner.os != 'macOS' }}
+
+ - name: Install OpenVINO Python wheels
+ uses: ./openvino/.github/actions/install_ov_wheels
+ with:
+ wheels-dir-path: ${{ env.INSTALL_WHEELS_DIR }}
+ wheels-to-install: 'openvino'
+
+ - name: Install JAX Layer tests dependencies
+ run: |
+ # jax test requirements
+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_jax
+
+ - name: JAX Layer Tests
+ if: ${{ fromJSON(inputs.affected-components).JAX_FE.test && runner.arch != 'ARM64' }} # Ticket: 126287, 142196
+ run: python3 -m pytest ${{ env.LAYER_TESTS_INSTALL_DIR }}/jax_tests ${PARALLEL} -m precommit_jax_fe --junitxml=${{ env.INSTALL_TEST_DIR }}/TEST-jax.xml
+ env:
+ TEST_DEVICE: CPU
+ TEST_PRECISION: FP16
+ JAX_TRACE_MODE: JAXPR
+ PARALLEL: ${{ runner.os == 'Windows' && ' ' || '-n logical'}}
+
+ - name: Upload Test Results
+ uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
+ if: ${{ !cancelled() }}
+ with:
+ name: test-results-python-jax-layers
+ path: |
+ ${{ env.INSTALL_TEST_DIR }}/TEST*.html
+ ${{ env.INSTALL_TEST_DIR }}/TEST*.xml
+ if-no-files-found: 'warn'
diff --git a/.github/workflows/job_jax_models_tests.yml b/.github/workflows/job_jax_models_tests.yml
index 07155db1016057..57eb07a83aa423 100644
--- a/.github/workflows/job_jax_models_tests.yml
+++ b/.github/workflows/job_jax_models_tests.yml
@@ -89,7 +89,7 @@ jobs:
- name: Install JAX tests requirements for precommit
run: |
- python3 -m pip install -r ${MODEL_HUB_TESTS_INSTALL_DIR}/jax/requirements.txt
+ python3 -m pip install -r ${{ env.INSTALL_TEST_DIR }}/requirements_jax
- name: JAX/Flax Models Tests from Hugging Face
if: ${{ inputs.model_scope == 'precommit' || inputs.model_scope == 'nightly' }}
diff --git a/.github/workflows/job_python_unit_tests.yml b/.github/workflows/job_python_unit_tests.yml
index b04f719c8e296f..e1532d530ff2db 100644
--- a/.github/workflows/job_python_unit_tests.yml
+++ b/.github/workflows/job_python_unit_tests.yml
@@ -162,14 +162,6 @@ jobs:
export LD_LIBRARY_PATH=${PIP_INSTALL_PATH}/openvino/libs:$LD_LIBRARY_PATH
python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/py_frontend_tests --junitxml=${INSTALL_TEST_DIR}/TEST-test_py_fontend.xml
- - name: JAX Layer Tests - JAX FE
- if: ${{ fromJSON(inputs.affected-components).JAX_FE.test && runner.arch != 'ARM64' && runner.os != 'macOS' }}
- run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/jax_tests/ -m precommit_jax_fe --junitxml=${INSTALL_TEST_DIR}/TEST-jax_fe.xml
- env:
- TEST_DEVICE: CPU
- TEST_PRECISION: FP16
- JAX_TRACE_MODE: JAXPR
-
- name: TensorFlow Lite Layer Tests - TFL FE
if: fromJSON(inputs.affected-components).TFL_FE.test
run: python3 -m pytest ${LAYER_TESTS_INSTALL_DIR}/tensorflow_lite_tests/ -n logical --junitxml=${INSTALL_TEST_DIR}/TEST-tfl_fe.xml
diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.yml
index 66e825e5d5e126..ca1ca6e056e23d 100644
--- a/.github/workflows/linux_arm64.yml
+++ b/.github/workflows/linux_arm64.yml
@@ -202,6 +202,16 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Build, Docker, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'aks-linux-16-cores-32gb-arm'
+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_20_04_arm64 }}", "volumes": ["/mount:/mount"]}'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.11'
+
CPU_Functional_Tests:
name: CPU functional tests
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index 5e4335b8151c02..0fbc20cf19594b 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -356,6 +356,15 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Build, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'macos-13'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.11'
+
CPU_Functional_Tests:
name: CPU functional tests
# if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
diff --git a/.github/workflows/mac_arm64.yml b/.github/workflows/mac_arm64.yml
index 855d76973cc2e4..b60daefa442c83 100644
--- a/.github/workflows/mac_arm64.yml
+++ b/.github/workflows/mac_arm64.yml
@@ -355,6 +355,15 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Build, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'macos-13-xlarge'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.11'
+
CPU_Functional_Tests:
name: CPU functional tests
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
diff --git a/.github/workflows/ubuntu_22.yml b/.github/workflows/ubuntu_22.yml
index 5aed74bbb242b8..e5c7d25003de1e 100644
--- a/.github/workflows/ubuntu_22.yml
+++ b/.github/workflows/ubuntu_22.yml
@@ -334,6 +334,16 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Docker, Build, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'aks-linux-4-cores-16gb'
+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_22_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.11'
+
CPU_Functional_Tests:
name: CPU functional tests
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU.test
diff --git a/.github/workflows/ubuntu_24.yml b/.github/workflows/ubuntu_24.yml
index 25be095e692d35..beac15bfbda97d 100644
--- a/.github/workflows/ubuntu_24.yml
+++ b/.github/workflows/ubuntu_24.yml
@@ -156,6 +156,16 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.12'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Docker, Build, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'aks-linux-4-cores-16gb'
+ container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_test.ubuntu_24_04_x64 }}", "volumes": ["/mount:/mount"]}'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.12'
+
TensorFlow_Layer_Tests:
name: TensorFlow Layer Tests
needs: [ Docker, Build, Smart_CI, Openvino_tokenizers ]
diff --git a/.github/workflows/windows_vs2019_release.yml b/.github/workflows/windows_vs2019_release.yml
index f1fd0be596baa2..de33f2603d7430 100644
--- a/.github/workflows/windows_vs2019_release.yml
+++ b/.github/workflows/windows_vs2019_release.yml
@@ -499,6 +499,15 @@ jobs:
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
python-version: '3.11'
+ JAX_Layer_Tests:
+ name: JAX Layer Tests
+ needs: [ Build, Smart_CI ]
+ uses: ./.github/workflows/job_jax_layer_tests.yml
+ with:
+ runner: 'aks-win-8-cores-16gb'
+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}
+ python-version: '3.11'
+
CXX_Unit_Tests:
name: C++ unit tests
needs: [ Build, Smart_CI ]
diff --git a/.github/workflows/workflow_rerunner.yml b/.github/workflows/workflow_rerunner.yml
index 0d8d6610bea588..535101ec943264 100644
--- a/.github/workflows/workflow_rerunner.yml
+++ b/.github/workflows/workflow_rerunner.yml
@@ -29,7 +29,7 @@ jobs:
name: Rerun Workflow
# Run only for the failed workflows in openvinotoolkit org
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.repository_owner == 'openvinotoolkit' }}
- runs-on: aks-linux-2-cores-8gb
+ runs-on: aks-linux-2-cores-8gb-stats
permissions:
actions: write
contents: read
@@ -70,7 +70,7 @@ jobs:
rerunner_tests:
name: Rerunner Tests
if: ${{ github.event_name == 'pull_request' && github.repository_owner == 'openvinotoolkit' }}
- runs-on: aks-linux-2-cores-8gb
+ runs-on: aks-linux-2-cores-8gb-stats
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -96,9 +96,9 @@ jobs:
working-directory: ${{ github.workspace }}/.github/scripts/workflow_rerun
run: |
export PYTHONPATH=${{ github.workspace }}/.github/scripts/workflow_rerun:${{ github.workspace }}/.github/scripts:$PYTHONPATH
-
+
# Need to get a run id with successful status for log analyzing
# cannot lock a run id as logs get deleted after some time
run_id=$(python3 -c "from github import Github, Auth; import os; github=Github(auth=Auth.Token(token=os.environ.get('GITHUB_TOKEN'))); repo = github.get_repo('${GITHUB_REPOSITORY}'); run_id = repo.get_workflow_runs(status='success')[0].id; print(run_id)")
-
+
python3 rerunner.py --repository-name ${GITHUB_REPOSITORY} --run-id $run_id --dry-run
diff --git a/cmake/developer_package/compile_flags/os_flags.cmake b/cmake/developer_package/compile_flags/os_flags.cmake
index 660fd6160893ae..e75c6851ad0f7b 100644
--- a/cmake/developer_package/compile_flags/os_flags.cmake
+++ b/cmake/developer_package/compile_flags/os_flags.cmake
@@ -455,6 +455,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Build with multiple processes
ov_add_compiler_flags(/MP)
+ # Workaround for an MSVC compiler issue in some versions of Visual Studio 2022.
+ # The issue involves a null dereference to a mutex. For details, refer to link https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710
+ if(MSVC AND MSVC_VERSION GREATER_EQUAL 1930 AND MSVC_VERSION LESS 1941)
+ ov_add_compiler_flags(/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
+ endif()
+
if(AARCH64 AND NOT MSVC_VERSION LESS 1930)
# otherwise, _ARM64_EXTENDED_INTRINSICS is defined, which defines 'mvn' macro
ov_add_compiler_flags(/D_ARM64_DISTINCT_NEON_TYPES)
diff --git a/docs/articles_en/about-openvino/compatibility-and-support/supported-models.rst b/docs/articles_en/about-openvino/compatibility-and-support/supported-models.rst
index d877cb1768d44d..f4ec275491fa32 100644
--- a/docs/articles_en/about-openvino/compatibility-and-support/supported-models.rst
+++ b/docs/articles_en/about-openvino/compatibility-and-support/supported-models.rst
@@ -6,16 +6,14 @@ models from OpenVINO-supported frameworks may also work properly but have not be
**AI Models that run on Intel® Core Ultra™ Processors with OpenVINO™ toolkit:**
-.. raw:: html
-
-
-
-
-.. csv-table::
+.. data-table::
:class: modeldata stripe
:name: supportedModelsTable
:header-rows: 1
:file: ../../_static/download/supported_models.csv
+ :data-column-hidden: []
+ :data-order: [[ 0, "asc" ]]
+ :data-page-length: 10
| Marked cells indicate models that passed inference with no errors. Empty cells indicate
diff --git a/docs/articles_en/about-openvino/compatibility-and-support/supported-operations.rst b/docs/articles_en/about-openvino/compatibility-and-support/supported-operations.rst
index d27f7626391f46..1bd8f5dae7c634 100644
--- a/docs/articles_en/about-openvino/compatibility-and-support/supported-operations.rst
+++ b/docs/articles_en/about-openvino/compatibility-and-support/supported-operations.rst
@@ -41,27 +41,36 @@ Data as of OpenVINO 2024.4, 18 Oct. 2024.
.. tab-item:: PyTorch
- .. csv-table::
+ .. data-table::
:class: modeldata stripe
- :name: TensorFlow ops
+ :name: TensorFlow_ops_v1
:header-rows: 1
:file: ../../_static/conformance_files/pytorch_ops.csv
+ :data-column-hidden: []
+ :data-order: [[ 0, "asc" ]]
+ :data-page-length: 10
.. tab-item:: TensorFlow
- .. csv-table::
+ .. data-table::
:class: modeldata stripe
- :name: TensorFlow ops
+ :name: TensorFlow_ops_v2
:header-rows: 1
:file: ../../_static/conformance_files/tensorflow_ops.csv
+ :data-column-hidden: []
+ :data-order: [[ 0, "asc" ]]
+ :data-page-length: 10
.. tab-item:: PaddlePaddle
- .. csv-table::
+ .. data-table::
:class: modeldata stripe
- :name: Paddle ops
+ :name: Paddle_ops
:header-rows: 1
:file: ../../_static/conformance_files/paddlepaddle_ops.csv
+ :data-column-hidden: []
+ :data-order: [[ 0, "asc" ]]
+ :data-page-length: 10
.. tab-item:: ONNX
diff --git a/docs/articles_en/about-openvino/performance-benchmarks/generative-ai-performance.rst b/docs/articles_en/about-openvino/performance-benchmarks/generative-ai-performance.rst
index 085a1ff8449151..83581d465df92e 100644
--- a/docs/articles_en/about-openvino/performance-benchmarks/generative-ai-performance.rst
+++ b/docs/articles_en/about-openvino/performance-benchmarks/generative-ai-performance.rst
@@ -8,10 +8,6 @@ The current data is as of OpenVINO 2024.4, 20 Nov. 2024.
The tables below list the key performance indicators for inference on built-in GPUs.
-.. raw:: html
-
-
-
.. tab-set::
@@ -22,7 +18,9 @@ The tables below list the key performance indicators for inference on built-in G
:name: supportedModelsTable_V1
:header-rows: 1
:file: ../../_static/benchmarks_files/llm_models_9-288V.csv
- :hidden: [3,4,6]
+ :data-column-hidden: [3,4,6]
+ :data-order: [[ 0, "asc" ]]
+ :data-page-length: 10
.. tab-item:: 7-268V
@@ -31,7 +29,8 @@ The tables below list the key performance indicators for inference on built-in G
:name: supportedModelsTable_V2
:header-rows: 1
:file: ../../_static/benchmarks_files/llm_models_7-258V.csv
- :hidden: [3,4,6]
+ :data-column-hidden: [3,4,6]
+ :data-order: [[ 0, "asc" ]]
.. tab-item:: 7-155H
@@ -40,7 +39,8 @@ The tables below list the key performance indicators for inference on built-in G
:name: supportedModelsTable_V3
:header-rows: 1
:file: ../../_static/benchmarks_files/llm_models_7-155H.csv
- :hidden: [3,4,6]
+ :data-column-hidden: [3,4,6]
+ :data-order: [[ 0, "asc" ]]
.. grid:: 1 1 2 2
diff --git a/docs/articles_en/openvino-workflow/model-preparation/convert-model-pytorch.rst b/docs/articles_en/openvino-workflow/model-preparation/convert-model-pytorch.rst
index 6ac806daf0cda0..62cfdf05f2b11f 100644
--- a/docs/articles_en/openvino-workflow/model-preparation/convert-model-pytorch.rst
+++ b/docs/articles_en/openvino-workflow/model-preparation/convert-model-pytorch.rst
@@ -203,6 +203,52 @@ Here is an example of how to convert a model obtained with ``torch.export``:
This is an experimental feature. Use it only if you know that you need to. PyTorch version 2.2
is recommended. Dynamic shapes are not supported yet.
+Converting a PyTorch Model from Disk
+####################################
+
+PyTorch provides the capability to save models in two distinct formats: ``torch.jit.ScriptModule`` and ``torch.export.ExportedProgram``.
+Both formats can be saved to disk as standalone files, enabling them to be reloaded independently of the original Python code.
+
+ExportedProgram Format
+++++++++++++++++++++++
+
+The ``ExportedProgram`` format is saved on disk using `torch.export.save() `__.
+Below is an example of how to convert an ``ExportedProgram`` from disk:
+
+.. tab-set::
+
+ .. tab-item:: Python
+ :sync: py
+
+ .. code-block:: py
+ :force:
+
+ import openvino as ov
+ ov_model = ov.convert_model('exported_program.pt2')
+
+ .. tab-item:: CLI
+ :sync: cli
+
+ .. code-block:: sh
+
+ ovc exported_program.pt2
+
+ScriptModule Format
++++++++++++++++++++
+
+`torch.jit.save() `__ serializes ``ScriptModule`` object on disk.
+To convert the serialized ``ScriptModule`` format, run ``convert_model`` function with ``example_input`` parameter as follows:
+
+.. code-block:: py
+ :force:
+
+ from openvino import convert_model
+ import torch
+
+ convert_model(input_model='script_module.pt', example_input=torch.rand(1, 10))
+
+``example_input`` is the required parameter for the conversion because ``torch.jit.ScriptModule`` object is always saved in an untraced state on disk.
+
Exporting a PyTorch Model to ONNX Format
########################################
diff --git a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device/performance-hint-and-thread-scheduling.rst b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device/performance-hint-and-thread-scheduling.rst
index 46b541d84d4035..6cc211116d1199 100644
--- a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device/performance-hint-and-thread-scheduling.rst
+++ b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/cpu-device/performance-hint-and-thread-scheduling.rst
@@ -63,19 +63,19 @@ the model precision and the ratio of P-cores and E-cores.
Then the default settings for low-level performance properties on Windows and Linux are as follows:
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
-| Property | Windows | Linux |
-+======================================+=======================================================================+=======================================================================+
-| ``ov::num_streams`` | 1 | 1 |
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
-| ``ov::inference_num_threads`` | is equal to the number of P-cores or P-cores+E-cores on one numa node | is equal to the number of P-cores or P-cores+E-cores on one numa node |
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
-| ``ov::hint::scheduling_core_type`` | :ref:`Core Type Table of Latency Hint ` | :ref:`Core Type Table of Latency Hint ` |
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
-| ``ov::hint::enable_hyper_threading`` | No | No |
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
-| ``ov::hint::enable_cpu_pinning`` | No / Not Supported | Yes except using P-cores and E-cores together |
-+--------------------------------------+-----------------------------------------------------------------------+-----------------------------------------------------------------------+
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
+| Property | Windows | Linux |
++======================================+====================================================================+====================================================================+
+| ``ov::num_streams`` | 1 | 1 |
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
+| ``ov::inference_num_threads`` | is equal to the number of P-cores or P-cores+E-cores on one socket | is equal to the number of P-cores or P-cores+E-cores on one socket |
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
+| ``ov::hint::scheduling_core_type`` | :ref:`Core Type Table of Latency Hint ` | :ref:`Core Type Table of Latency Hint ` |
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
+| ``ov::hint::enable_hyper_threading`` | No | No |
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
+| ``ov::hint::enable_cpu_pinning`` | No / Not Supported | Yes except using P-cores and E-cores together |
++--------------------------------------+--------------------------------------------------------------------+--------------------------------------------------------------------+
.. note::
@@ -96,7 +96,7 @@ Then the default settings for low-level performance properties on Windows and Li
Starting from 5th Gen Intel Xeon Processors, new microarchitecture enabled new sub-NUMA clusters
feature. A sub-NUMA cluster (SNC) can create two or more localization domains (numa nodes)
within a socket by BIOS configuration.
- By default OpenVINO with latency hint uses single NUMA node for inference. Although such
+ By default OpenVINO with latency hint uses single socket for inference. Although such
behavior allows to achive best performance for most of the models, there might be corner
cases which require manual tuning of ``ov::num_streams`` and ``ov::hint::enable_hyper_threading parameters``.
Please find more detail about `Sub-NUMA Clustering `__
diff --git a/docs/openvino_sphinx_theme/openvino_sphinx_theme/directives/code.py b/docs/openvino_sphinx_theme/openvino_sphinx_theme/directives/code.py
index c3e0e81eec3b3a..814517289ce114 100644
--- a/docs/openvino_sphinx_theme/openvino_sphinx_theme/directives/code.py
+++ b/docs/openvino_sphinx_theme/openvino_sphinx_theme/directives/code.py
@@ -11,7 +11,7 @@
import requests
import re
import json
-
+import html
import csv
logger = logging.getLogger(__name__)
@@ -147,7 +147,9 @@ class DataTable(Directive):
'file': directives.path,
'class': directives.unchanged,
'name': directives.unchanged,
- 'hidden': directives.unchanged
+ 'data-column-hidden': directives.unchanged,
+ 'data-page-length': directives.unchanged,
+ 'data-order': directives.unchanged
}
def run(self) -> List[Node]:
@@ -159,10 +161,12 @@ def run(self) -> List[Node]:
csv_node = []
with open(csv_file, 'r') as j:
csv_data = list(csv.reader(j))
- class_table_tag = ' class="' + "".join(c for c in str(self.options['class']) + '"') if 'class' in self.options is not None else ""
- id_table_tag = ' id="' + "".join(c for c in str(self.options['name']) + '"') if 'name' in self.options is not None else ""
- hidden_table_tag = ' data-columns-hidden="' + "".join(c for c in str(self.options['hidden']) + '"') if 'hidden' in self.options is not None else ""
- csv_table_html = '
'
+ class_table_tag = f' class="{html.escape(self.options["class"])}"' if "class" in self.options else ""
+ id_table_tag = f' id="{html.escape(self.options["name"])}"' if "name" in self.options else ""
+ data_column_hidden_tag = f' data-column-hidden="{html.escape(self.options["data-column-hidden"])}"' if "data-column-hidden" in self.options else ""
+ data_order_tag = f' data-order="{html.escape(self.options["data-order"])}"' if "data-order" in self.options else ""
+ data_page_length_tag = f' data-page-length="{html.escape(self.options["data-page-length"])}"' if "data-page-length" in self.options else ""
+ csv_table_html = f'
'
head_rows = 0
head_rows += self.options.get('header-rows', 0)
row_count = 0
diff --git a/docs/snippets/CMakeLists.txt b/docs/snippets/CMakeLists.txt
index ec1cf14bd0e60b..18d176212a0212 100644
--- a/docs/snippets/CMakeLists.txt
+++ b/docs/snippets/CMakeLists.txt
@@ -122,12 +122,15 @@ set(TARGET_NAME_PY "ov_integration_snippet_py")
cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 11)
-find_package(Python3 REQUIRED)
- execute_process(
- COMMAND ${Python3_EXECUTABLE} -c "from openvino.utils import get_cmake_path; print(get_cmake_path(), end='')"
- OUTPUT_VARIABLE OpenVINO_DIR_PY
- ERROR_QUIET
- )
+if(NOT CMAKE_CROSSCOMPILING)
+ find_package(Python3 QUIET COMPONENTS Interpreter)
+ if(Python3_Interpreter_FOUND)
+ execute_process(
+ COMMAND ${Python3_EXECUTABLE} -c "from openvino.utils import get_cmake_path; print(get_cmake_path(), end='')"
+ OUTPUT_VARIABLE OpenVINO_DIR_PY
+ ERROR_QUIET)
+ endif()
+endif()
find_package(OpenVINO REQUIRED PATHS "${OpenVINO_DIR_PY}")
diff --git a/docs/sphinx_setup/_static/css/custom.css b/docs/sphinx_setup/_static/css/custom.css
index de8a05732a4d06..1679f7309da044 100644
--- a/docs/sphinx_setup/_static/css/custom.css
+++ b/docs/sphinx_setup/_static/css/custom.css
@@ -69,7 +69,7 @@ a#wap_dns {
/* Sphinx-design tabs override */
.sd-tab-set>input:checked+label {
color: var(--sd-color-black) !important;
- background-color: #f8f8f8 !important;
+ background-color: white !important;
border: solid 1px #bdbdbd;
border-bottom: solid 0px;
margin-bottom: -1px;
@@ -96,7 +96,7 @@ a#wap_dns {
cursor: pointer;
font-size: var(--sd-fontsize-tabs-label);
font-weight: 400 !important;
- padding: 5px 16px 2px !important;
+ padding: 5px 16px 0px !important;
transition: color 250ms;
width: auto;
z-index: 1;
@@ -110,7 +110,6 @@ a#wap_dns {
box-shadow: 0 0 0 0;
border: solid 1px var(--sd-color-tabs-overline);
border-color: #bdbdbd;
- background-color: #f8f8f8;
padding-right: 4px;
padding-left: 4px;
padding-bottom: 6px;
diff --git a/docs/sphinx_setup/_static/css/openVinoDataTables.css b/docs/sphinx_setup/_static/css/openVinoDataTables.css
index 526aabb6abe15d..bedc0f5206e260 100644
--- a/docs/sphinx_setup/_static/css/openVinoDataTables.css
+++ b/docs/sphinx_setup/_static/css/openVinoDataTables.css
@@ -6,8 +6,7 @@ div.dt-buttons>.dt-button, div.dt-buttons>div.dt-button-split .dt-button {
}
div.dt-container .dt-paging .dt-paging-button:hover {
- color: white !important;
- border: 1px solid #aaa;
+ border: 1px solid #aaa !important;
background:none !important;
background-color: var(--bttn-act-bg-hover) !important
}
@@ -190,10 +189,9 @@ div.dt-container .dt-paging .dt-paging-button {
div.dt-container .dt-paging .dt-paging-button.current, div.dt-container .dt-paging .dt-paging-button.current:hover {
background: none !important;
- background-color: var(--bttn-act-bg-active) !important;
+ background-color: var(--bttn-sec-border-color) !important;
border-color: var(--bttn-act-bg-active) !important;
border-radius: 0px !important;
- color: white !important;
border: 1px !important
}
table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:before, table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:after, table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:before, table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:after, table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:before, table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:after, table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:before, table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:after, table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order:before, table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order:after, table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order:before, table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order:after, table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order:before, table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order:after, table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order:before, table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order:after {
diff --git a/docs/sphinx_setup/_static/js/openVinoDataTables.js b/docs/sphinx_setup/_static/js/openVinoDataTables.js
index bd56a71533786c..fb3a57d959020c 100644
--- a/docs/sphinx_setup/_static/js/openVinoDataTables.js
+++ b/docs/sphinx_setup/_static/js/openVinoDataTables.js
@@ -1,16 +1,15 @@
$(document).ready(function () {
var columnDefs = [];
-
var tables = $('table.modeldata');
for (let table of tables) {
- var hidden = table.getAttribute('data-columns-hidden');
+ var hidden = table.getAttribute('data-column-hidden');
columnDefs = [{ "visible": false, "targets": JSON.parse(hidden) }]
$(table).DataTable({
responsive: true,
"autoWidth": false,
language: {
buttons: {
- colvisRestore: "Restore default"
+ colvisRestore: "Restore default selection"
}
},
lengthMenu: [
diff --git a/docs/sphinx_setup/_templates/layout.html b/docs/sphinx_setup/_templates/layout.html
index 0d2331b2c83fe3..a791091e1f13a4 100644
--- a/docs/sphinx_setup/_templates/layout.html
+++ b/docs/sphinx_setup/_templates/layout.html
@@ -9,6 +9,7 @@
+
diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py
index 7643f742e0067d..69c678909b1c9e 100644
--- a/src/bindings/python/src/openvino/__init__.py
+++ b/src/bindings/python/src/openvino/__init__.py
@@ -7,7 +7,7 @@
# Required for Windows OS platforms
# Note: always top-level
try:
- from openvino.package_utils import _add_openvino_libs_to_search_path
+ from openvino.utils import _add_openvino_libs_to_search_path
_add_openvino_libs_to_search_path()
except ImportError:
pass
@@ -17,47 +17,6 @@
# # This __init__.py forces checking of runtime modules to propagate errors.
# # It is not compared with init files from openvino-dev package.
# #
-
-# Openvino pybind bindings
-from openvino._pyopenvino import AxisSet
-from openvino._pyopenvino import AxisVector
-from openvino._pyopenvino import ConstOutput
-from openvino._pyopenvino import Coordinate
-from openvino._pyopenvino import CoordinateDiff
-from openvino._pyopenvino import DiscreteTypeInfo
-from openvino._pyopenvino import Extension
-from openvino._pyopenvino import ProfilingInfo
-from openvino._pyopenvino import RTMap
-from openvino._pyopenvino import Version
-from openvino._pyopenvino import Symbol
-from openvino._pyopenvino import Dimension
-from openvino._pyopenvino import Input
-from openvino._pyopenvino import Output
-from openvino._pyopenvino import Node
-from openvino._pyopenvino import Strides
-from openvino._pyopenvino import PartialShape
-from openvino._pyopenvino import Shape
-from openvino._pyopenvino import Layout
-from openvino._pyopenvino import Type
-from openvino._pyopenvino import Tensor
-from openvino._pyopenvino import OVAny
-from openvino._pyopenvino import get_batch
-from openvino._pyopenvino import set_batch
-from openvino._pyopenvino import serialize
-from openvino._pyopenvino import shutdown
-from openvino._pyopenvino import save_model
-from openvino._pyopenvino import layout_helpers
-from openvino._pyopenvino import RemoteContext
-from openvino._pyopenvino import RemoteTensor
-from openvino._pyopenvino import Op
-
-# Import public classes from _ov_api
-from openvino._ov_api import Model
-from openvino._ov_api import Core
-from openvino._ov_api import CompiledModel
-from openvino._ov_api import InferRequest
-from openvino._ov_api import AsyncInferQueue
-
# Import all public modules
from openvino import runtime as runtime
from openvino import frontend as frontend
@@ -67,10 +26,36 @@
from openvino import utils as utils
from openvino import properties as properties
+# Import most important classes and functions from openvino.runtime
+from openvino._ov_api import Model
+from openvino._ov_api import Core
+from openvino._ov_api import CompiledModel
+from openvino._ov_api import InferRequest
+from openvino._ov_api import AsyncInferQueue
+
+from openvino.runtime import Symbol
+from openvino.runtime import Dimension
+from openvino.runtime import Strides
+from openvino.runtime import PartialShape
+from openvino.runtime import Shape
+from openvino.runtime import Layout
+from openvino.runtime import Type
+from openvino.runtime import Tensor
+from openvino.runtime import OVAny
+
# Helper functions for openvino module
-from openvino.utils.data_helpers import tensor_from_file
+from openvino.runtime.utils.data_helpers import tensor_from_file
from openvino._ov_api import compile_model
+from openvino.runtime import get_batch
+from openvino.runtime import set_batch
+from openvino.runtime import serialize
+from openvino.runtime import shutdown
+from openvino.runtime import save_model
+from openvino.runtime import layout_helpers
+from openvino._pyopenvino import RemoteContext
+from openvino._pyopenvino import RemoteTensor
+from openvino._pyopenvino import Op
# Import opsets
from openvino import opset1
@@ -95,7 +80,7 @@
from openvino._pyopenvino import VASurfaceTensor
# Set version for openvino package
-from openvino._pyopenvino import get_version
+from openvino.runtime import get_version
__version__ = get_version()
# Tools
diff --git a/src/bindings/python/src/openvino/_ov_api.py b/src/bindings/python/src/openvino/_ov_api.py
index da31fab4c95d8e..53d0fa5316498b 100644
--- a/src/bindings/python/src/openvino/_ov_api.py
+++ b/src/bindings/python/src/openvino/_ov_api.py
@@ -5,7 +5,9 @@
from types import TracebackType
from typing import Any, Iterable, Union, Optional, Dict, Type
from pathlib import Path
+import warnings
+import numpy as np
from openvino._pyopenvino import Model as ModelBase
from openvino._pyopenvino import Core as CoreBase
@@ -14,7 +16,7 @@
from openvino._pyopenvino import Tensor
from openvino._pyopenvino import Node
-from openvino.utils.data_helpers import (
+from openvino.runtime.utils.data_helpers import (
OVDict,
_InferRequestWrapper,
_data_dispatch,
diff --git a/src/bindings/python/src/openvino/frontend/frontend.py b/src/bindings/python/src/openvino/frontend/frontend.py
index 6a16d5a573b7d7..4d549d24b4ef7c 100644
--- a/src/bindings/python/src/openvino/frontend/frontend.py
+++ b/src/bindings/python/src/openvino/frontend/frontend.py
@@ -7,7 +7,7 @@
from openvino._pyopenvino import FrontEnd as FrontEndBase
from openvino._pyopenvino import FrontEndManager as FrontEndManagerBase
from openvino._pyopenvino import InputModel
-from openvino import Model
+from openvino.runtime import Model
class FrontEnd(FrontEndBase):
diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py
index 9072598f824939..914f6b2e2ee548 100644
--- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py
+++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py
@@ -6,7 +6,7 @@
import jax.core
from openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder
-from openvino import PartialShape, Type as OVType, OVAny
+from openvino.runtime import PartialShape, Type as OVType, OVAny
from openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \
ivalue_to_constant, param_to_constants
diff --git a/src/bindings/python/src/openvino/frontend/jax/utils.py b/src/bindings/python/src/openvino/frontend/jax/utils.py
index 659677b11d5af8..4535265d6de082 100644
--- a/src/bindings/python/src/openvino/frontend/jax/utils.py
+++ b/src/bindings/python/src/openvino/frontend/jax/utils.py
@@ -8,7 +8,7 @@
import jax.numpy as jnp
import numpy as np
from openvino.frontend.jax.passes import filter_element, filter_ivalue, filter_param
-from openvino import op, Type as OVType, Shape, OVAny
+from openvino.runtime import op, Type as OVType, Shape, OVAny
numpy_to_ov_type_map = {
np.float32: OVType.f32,
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py
index 81a2764ee1188d..c448571f1ac17a 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py
@@ -10,7 +10,7 @@
from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder
from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType
-from openvino import PartialShape, Type as OVType, OVAny, Shape
+from openvino.runtime import PartialShape, Type as OVType, OVAny, Shape
from openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_const
logger = logging.getLogger(__name__)
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py
index a9a65781dcb254..9f2ef019769875 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py
@@ -18,7 +18,7 @@
from torch._decomp import decomposition_table, get_decompositions
from openvino.frontend import FrontEndManager
-from openvino import Core, Type, PartialShape
+from openvino.runtime import Core, Type, PartialShape
from openvino.frontend.pytorch.ts_decoder import TorchScriptPythonDecoder
from openvino.frontend.pytorch.torchdynamo import decompositions
from openvino.frontend.pytorch.torchdynamo.decompositions import get_aot_decomposition_list, get_inf_decomposition_list
@@ -27,7 +27,7 @@
from openvino.frontend.pytorch.torchdynamo.compile import cached_model_name, openvino_compile_cached_model
from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_model_caching, _get_decompositions, _get_aot_autograd
-from openvino import Core, Type, PartialShape
+from openvino.runtime import Core, Type, PartialShape
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARNING)
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py
index c9a772b3feac42..47b3b82806b18b 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py
@@ -5,7 +5,7 @@
# mypy: ignore-errors
from typing import Optional, Any
-from openvino import Core
+from openvino.runtime import Core
def _get_device(options) -> Optional[Any]:
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py
index ca8d5478e76c15..fa446893a05d07 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py
@@ -14,7 +14,7 @@
from openvino.frontend import FrontEndManager
from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder
-from openvino import Core, Type, PartialShape, serialize
+from openvino.runtime import Core, Type, PartialShape, serialize
from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_config, _is_cache_dir_in_config
from typing import Callable, Optional
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py
index 7527ad7acb37a4..4f41f7b5a6a9de 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py
@@ -20,7 +20,7 @@
from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder
from openvino.frontend.pytorch.torchdynamo.partition import Partitioner
from openvino.frontend.pytorch.torchdynamo.compile import openvino_compile
-from openvino import Core, Type, PartialShape
+from openvino.runtime import Core, Type, PartialShape
from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_aot_autograd
from typing import Callable, Optional, Any
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
index 7bb8073167a654..6d8fdb1658793e 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py
@@ -6,7 +6,7 @@
from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder
from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType
-from openvino import op, PartialShape, Type as OVType, OVAny
+from openvino.runtime import op, PartialShape, Type as OVType, OVAny
from openvino.frontend.pytorch.utils import (
ivalue_to_constant,
get_value_from_getattr,
@@ -15,7 +15,7 @@
convert_quantized_tensor,
graph_has_ops,
)
-from openvino import opset11 as ops
+from openvino.runtime import opset11 as ops
from openvino.frontend.pytorch import quantized, patch_model
from openvino.frontend.pytorch.module_extension import ModuleExtension
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/utils.py b/src/bindings/python/src/openvino/frontend/pytorch/utils.py
index 9ba36707037c9e..826d766505fa79 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/utils.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/utils.py
@@ -7,8 +7,8 @@
import torch
import numpy as np
-from openvino import op, Type as OVType, Shape, Tensor
-from openvino import opset11 as ops
+from openvino.runtime import op, Type as OVType, Shape, Tensor
+from openvino.runtime import opset11 as ops
def make_constant(*args, **kwargs):
diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py
index d15262cbc30366..fcedd7a74c2b51 100644
--- a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py
+++ b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py
@@ -7,7 +7,7 @@
import numpy as np
import tensorflow as tf
from openvino.frontend.tensorflow.py_tensorflow_frontend import _FrontEndDecoderBase as DecoderBase
-from openvino import PartialShape, Type, OVAny, Tensor
+from openvino.runtime import PartialShape, Type, OVAny, Tensor
def tf_type_to_ov_type(tf_type_int):
diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py
index 7de5dc950be53e..74c0dfff92297e 100644
--- a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py
+++ b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py
@@ -8,7 +8,7 @@
import logging as log
import numpy as np
import sys
-from openvino import PartialShape, Dimension, Type
+from openvino.runtime import PartialShape, Dimension, Type
from packaging.version import parse, Version
from typing import List, Dict, Union
diff --git a/src/bindings/python/src/openvino/helpers/packing.py b/src/bindings/python/src/openvino/helpers/packing.py
index d0956e09fc6261..796af87402f3a6 100644
--- a/src/bindings/python/src/openvino/helpers/packing.py
+++ b/src/bindings/python/src/openvino/helpers/packing.py
@@ -5,7 +5,7 @@
import numpy as np
from typing import Union
-from openvino import Type, Shape
+from openvino.runtime import Type, Shape
def pack_data(array: np.ndarray, type: Type) -> np.ndarray:
diff --git a/src/bindings/python/src/openvino/opset1/ops.py b/src/bindings/python/src/openvino/opset1/ops.py
index e264aea304fb1f..edca6c62a0b246 100644
--- a/src/bindings/python/src/openvino/opset1/ops.py
+++ b/src/bindings/python/src/openvino/opset1/ops.py
@@ -8,17 +8,17 @@
import numpy as np
from functools import partial
-from openvino import Node, PartialShape, Type
+from openvino.runtime import Node, PartialShape, Type
from openvino.op import Constant, Parameter, tensor_iterator
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset10/ops.py b/src/bindings/python/src/openvino/opset10/ops.py
index d0bc3cbf1cba4a..c7b75777484a59 100644
--- a/src/bindings/python/src/openvino/opset10/ops.py
+++ b/src/bindings/python/src/openvino/opset10/ops.py
@@ -6,10 +6,10 @@
from functools import partial
from typing import List, Optional
-from openvino import Node
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op
-from openvino.utils.types import (
+from openvino.runtime import Node
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.types import (
NodeInput,
as_nodes,
as_node,
diff --git a/src/bindings/python/src/openvino/opset11/ops.py b/src/bindings/python/src/openvino/opset11/ops.py
index 95767b4800db1c..575c99501d2d6c 100644
--- a/src/bindings/python/src/openvino/opset11/ops.py
+++ b/src/bindings/python/src/openvino/opset11/ops.py
@@ -6,10 +6,10 @@
from functools import partial
from typing import List, Optional
-from openvino import Node
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op
-from openvino.utils.types import (
+from openvino.runtime import Node
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.types import (
NodeInput,
as_nodes,
)
diff --git a/src/bindings/python/src/openvino/opset12/ops.py b/src/bindings/python/src/openvino/opset12/ops.py
index 4b354b1fcff973..928bf4f71a9773 100644
--- a/src/bindings/python/src/openvino/opset12/ops.py
+++ b/src/bindings/python/src/openvino/opset12/ops.py
@@ -6,10 +6,10 @@
from functools import partial
from typing import Optional
-from openvino import Node
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op
-from openvino.utils.types import (
+from openvino.runtime import Node
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.types import (
NodeInput,
as_nodes,
as_node,
diff --git a/src/bindings/python/src/openvino/opset13/ops.py b/src/bindings/python/src/openvino/opset13/ops.py
index 5c6863740120f8..12f0d06b1a28e6 100644
--- a/src/bindings/python/src/openvino/opset13/ops.py
+++ b/src/bindings/python/src/openvino/opset13/ops.py
@@ -11,12 +11,12 @@
log = logging.getLogger(__name__)
-from openvino import Node, Shape, Type, Output, Tensor
+from openvino.runtime import Node, Shape, Type, Output, Tensor
from openvino.op import Constant, Result
from openvino.opset1 import convert_like
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import binary_op, nameable_op, unary_op, overloading
-from openvino.utils.types import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op, overloading
+from openvino.runtime.utils.types import (
NumericData,
NodeInput,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset14/ops.py b/src/bindings/python/src/openvino/opset14/ops.py
index 59e1bfd3e89c6f..fa872d24eb7f1a 100644
--- a/src/bindings/python/src/openvino/opset14/ops.py
+++ b/src/bindings/python/src/openvino/opset14/ops.py
@@ -7,11 +7,11 @@
from typing import Union, Optional, List
-from openvino import Node, Type
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.types import TensorShape
-from openvino.utils.decorators import nameable_op
-from openvino.utils.types import NodeInput, as_node, as_nodes
+from openvino.runtime import Node, Type
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.types import TensorShape
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.types import NodeInput, as_node, as_nodes
_get_node_factory_opset14 = partial(_get_node_factory, "opset14")
diff --git a/src/bindings/python/src/openvino/opset15/ops.py b/src/bindings/python/src/openvino/opset15/ops.py
index 97d4419fc4834b..8e6b8bd46d5f7c 100644
--- a/src/bindings/python/src/openvino/opset15/ops.py
+++ b/src/bindings/python/src/openvino/opset15/ops.py
@@ -7,12 +7,12 @@
from typing import List, Literal, Optional
import numpy as np
-from openvino import Node, Type
+from openvino.runtime import Node, Type
from openvino.opset1 import convert_like
from openvino.opset14 import constant
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import binary_op, nameable_op
-from openvino.utils.types import NodeInput, as_nodes
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op
+from openvino.runtime.utils.types import NodeInput, as_nodes
_get_node_factory_opset15 = partial(_get_node_factory, "opset15")
diff --git a/src/bindings/python/src/openvino/opset16/ops.py b/src/bindings/python/src/openvino/opset16/ops.py
index e5ebdc7a2a11d6..60656f6d993b6a 100644
--- a/src/bindings/python/src/openvino/opset16/ops.py
+++ b/src/bindings/python/src/openvino/opset16/ops.py
@@ -6,10 +6,10 @@
from functools import partial
from typing import Optional
-from openvino import Node
-from openvino.utils.decorators import nameable_op
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.types import NodeInput, as_nodes
+from openvino.runtime import Node
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.types import NodeInput, as_nodes
_get_node_factory_opset16 = partial(_get_node_factory, "opset16")
diff --git a/src/bindings/python/src/openvino/opset2/ops.py b/src/bindings/python/src/openvino/opset2/ops.py
index f76f608fe9a5c7..45b33f5bc0288b 100644
--- a/src/bindings/python/src/openvino/opset2/ops.py
+++ b/src/bindings/python/src/openvino/opset2/ops.py
@@ -9,17 +9,18 @@
from functools import partial
import warnings
-from openvino import Node, Shape
+from openvino.runtime import Node, Shape
from openvino.op import Constant, Parameter
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
assert_list_of_ints,
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory, _get_node_factory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset3/ops.py b/src/bindings/python/src/openvino/opset3/ops.py
index 1c2c7e309fe919..989f5819acb685 100644
--- a/src/bindings/python/src/openvino/opset3/ops.py
+++ b/src/bindings/python/src/openvino/opset3/ops.py
@@ -8,17 +8,18 @@
import numpy as np
from functools import partial
-from openvino import Node, Shape
+from openvino.runtime import Node, Shape
from openvino.op import Constant, Parameter
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
assert_list_of_ints,
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory, _get_node_factory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset4/ops.py b/src/bindings/python/src/openvino/opset4/ops.py
index e6f3a3a1550937..4f6ba016852b02 100644
--- a/src/bindings/python/src/openvino/opset4/ops.py
+++ b/src/bindings/python/src/openvino/opset4/ops.py
@@ -8,17 +8,18 @@
import numpy as np
from functools import partial
-from openvino import Node, Shape
+from openvino.runtime import Node, Shape
from openvino.op import Constant, Parameter
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
assert_list_of_ints,
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory, _get_node_factory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset5/ops.py b/src/bindings/python/src/openvino/opset5/ops.py
index 9217830752b1d8..20057b78c7c31d 100644
--- a/src/bindings/python/src/openvino/opset5/ops.py
+++ b/src/bindings/python/src/openvino/opset5/ops.py
@@ -8,17 +8,18 @@
import numpy as np
from functools import partial
-from openvino import Node, Shape
+from openvino.runtime import Node, Shape
from openvino.op import Constant, Parameter, loop
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
assert_list_of_ints,
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory, _get_node_factory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset6/ops.py b/src/bindings/python/src/openvino/opset6/ops.py
index 340d0405b4ba23..8020715f20dea3 100644
--- a/src/bindings/python/src/openvino/opset6/ops.py
+++ b/src/bindings/python/src/openvino/opset6/ops.py
@@ -9,13 +9,13 @@
from functools import partial, singledispatch
-from openvino import Node, Type, PartialShape, Output, Shape
+from openvino.runtime import Node, Type, PartialShape, Output, Shape
from openvino.op import assign, Constant, Parameter
from openvino.op import read_value as _read_value
from openvino.op.util import VariableInfo, Variable
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op, overloading
-from openvino.utils.types import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op, overloading
+from openvino.runtime.utils.types import (
NodeInput,
NumericType,
TensorShape,
diff --git a/src/bindings/python/src/openvino/opset7/ops.py b/src/bindings/python/src/openvino/opset7/ops.py
index e33d266debedf1..59e09b64888eb1 100644
--- a/src/bindings/python/src/openvino/opset7/ops.py
+++ b/src/bindings/python/src/openvino/opset7/ops.py
@@ -7,17 +7,18 @@
from typing import Callable, Iterable, List, Optional, Set, Union
import numpy as np
-from openvino import Node, Shape
+from openvino.runtime import Node, Shape
from openvino.op import Constant, Parameter
-from openvino.utils.decorators import binary_op, nameable_op, unary_op
-from openvino.utils.input_validation import (
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op
+from openvino.runtime.utils.input_validation import (
assert_list_of_ints,
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.node_factory import NodeFactory, _get_node_factory
-from openvino.utils.types import (
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
NodeInput,
NumericData,
NumericType,
diff --git a/src/bindings/python/src/openvino/opset8/ops.py b/src/bindings/python/src/openvino/opset8/ops.py
index a9a868e7b541d8..6995d55a28a776 100644
--- a/src/bindings/python/src/openvino/opset8/ops.py
+++ b/src/bindings/python/src/openvino/opset8/ops.py
@@ -9,15 +9,15 @@
import numpy as np
from openvino.exceptions import UserInputError
from openvino.op import Constant, Parameter, if_op
-from openvino import Node
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op
-from openvino.utils.input_validation import (
+from openvino.runtime import Node
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.input_validation import (
check_valid_attributes,
is_non_negative_value,
is_positive_value,
)
-from openvino.utils.types import (
+from openvino.runtime.utils.types import (
NodeInput,
TensorShape,
as_node,
diff --git a/src/bindings/python/src/openvino/opset9/ops.py b/src/bindings/python/src/openvino/opset9/ops.py
index e2264845e058dc..a6d45cfd0be2cc 100644
--- a/src/bindings/python/src/openvino/opset9/ops.py
+++ b/src/bindings/python/src/openvino/opset9/ops.py
@@ -7,10 +7,10 @@
from typing import Optional
import numpy as np
-from openvino import Node
-from openvino.utils.node_factory import _get_node_factory
-from openvino.utils.decorators import nameable_op
-from openvino.utils.types import (
+from openvino.runtime import Node
+from openvino.runtime.opset_utils import _get_node_factory
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.types import (
NodeInput,
as_nodes,
as_node,
diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
index 717e945217468c..c14635cc118208 100644
--- a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
+++ b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
@@ -5,7 +5,7 @@
from typing import Callable, Any, Union
import logging
-import openvino as ov
+import openvino.runtime as ov
class PreprocessConverter():
diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py
index 5dad42b47da44a..f8b51afd546f57 100644
--- a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py
+++ b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py
@@ -20,10 +20,10 @@
import torchvision.transforms as transforms
from torchvision.transforms import InterpolationMode
-import openvino as ov
-import openvino.opset11 as ops
-from openvino import Layout, Type
-from openvino.utils.decorators import custom_preprocess_function
+import openvino.runtime as ov
+import openvino.runtime.opset11 as ops
+from openvino.runtime import Layout, Type
+from openvino.runtime.utils.decorators import custom_preprocess_function
from openvino.preprocess import PrePostProcessor, ResizeAlgorithm, ColorFormat
diff --git a/src/bindings/python/src/openvino/runtime/opset_utils.py b/src/bindings/python/src/openvino/runtime/opset_utils.py
new file mode 100644
index 00000000000000..475750e71f87c5
--- /dev/null
+++ b/src/bindings/python/src/openvino/runtime/opset_utils.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2018-2024 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+from typing import Optional
+import numpy as np
+
+from openvino.runtime import Node
+from openvino.runtime.utils.decorators import nameable_op
+from openvino.runtime.utils.node_factory import NodeFactory
+from openvino.runtime.utils.types import (
+ as_node,
+ NodeInput,
+)
+
+
+def _get_node_factory(opset_version: Optional[str] = None) -> NodeFactory:
+ """Return NodeFactory configured to create operators from specified opset version."""
+ if opset_version:
+ return NodeFactory(opset_version)
+ else:
+ return NodeFactory()
diff --git a/src/bindings/python/src/openvino/runtime/opset_utils/__init__.py b/src/bindings/python/src/openvino/runtime/opset_utils/__init__.py
deleted file mode 100644
index 6fb3e5f6f0c950..00000000000000
--- a/src/bindings/python/src/openvino/runtime/opset_utils/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-
-from openvino.utils.node_factory import _get_node_factory
diff --git a/src/bindings/python/src/openvino/runtime/utils/__init__.py b/src/bindings/python/src/openvino/runtime/utils/__init__.py
index 8447e93a907277..73399ccbed2598 100644
--- a/src/bindings/python/src/openvino/runtime/utils/__init__.py
+++ b/src/bindings/python/src/openvino/runtime/utils/__init__.py
@@ -4,4 +4,4 @@
"""Generic utilities. Factor related functions out to separate files."""
-from openvino.utils import numpy_to_c, replace_node, replace_output_update_name
+from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name
diff --git a/src/bindings/python/src/openvino/utils/broadcasting.py b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py
similarity index 87%
rename from src/bindings/python/src/openvino/utils/broadcasting.py
rename to src/bindings/python/src/openvino/runtime/utils/broadcasting.py
index 01549625e2c628..9fd13da7728e29 100644
--- a/src/bindings/python/src/openvino/utils/broadcasting.py
+++ b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py
@@ -3,11 +3,14 @@
# SPDX-License-Identifier: Apache-2.0
import logging
-from typing import Optional
+from typing import List, Optional
-from openvino import AxisSet
-from openvino.utils.types import (
+from openvino.runtime import AxisSet, Node
+from openvino.runtime.utils.types import (
+ NodeInput,
TensorShape,
+ get_dtype,
+ make_constant_node,
)
log = logging.getLogger(__name__)
diff --git a/src/bindings/python/src/openvino/runtime/utils/broadcasting/__init__.py b/src/bindings/python/src/openvino/runtime/utils/broadcasting/__init__.py
deleted file mode 100644
index 3219f239f0ab44..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/broadcasting/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.broadcasting import get_broadcast_axes
diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py
index 282547dd9df79a..a46105efaaeadb 100644
--- a/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py
+++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py
@@ -2,7 +2,7 @@
# Copyright (C) 2018-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
-from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
-from openvino.utils.data_helpers.wrappers import tensor_from_file
-from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
-from openvino.utils.data_helpers.wrappers import OVDict
+from openvino.runtime.utils.data_helpers.data_dispatcher import _data_dispatch
+from openvino.runtime.utils.data_helpers.wrappers import tensor_from_file
+from openvino.runtime.utils.data_helpers.wrappers import _InferRequestWrapper
+from openvino.runtime.utils.data_helpers.wrappers import OVDict
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py
similarity index 99%
rename from src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py
rename to src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py
index d4db7cb07b629c..bce10c9c3774ef 100644
--- a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py
+++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py
@@ -8,7 +8,7 @@
import numpy as np
from openvino._pyopenvino import ConstOutput, Tensor, Type, RemoteTensor
-from openvino.utils.data_helpers.wrappers import _InferRequestWrapper, OVDict
+from openvino.runtime.utils.data_helpers.wrappers import _InferRequestWrapper, OVDict
ContainerTypes = Union[dict, list, tuple, OVDict]
ScalarTypes = Union[np.number, int, float]
diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher/__init__.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher/__init__.py
deleted file mode 100644
index e0a2d022660dd3..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher/__init__.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-
-from openvino.utils.data_helpers.data_dispatcher import ContainerTypes
-from openvino.utils.data_helpers.data_dispatcher import ScalarTypes
-from openvino.utils.data_helpers.data_dispatcher import ValidKeys
-
-from openvino.utils.data_helpers.data_dispatcher import is_list_simple_type
-from openvino.utils.data_helpers.data_dispatcher import get_request_tensor
-from openvino.utils.data_helpers.data_dispatcher import value_to_tensor
-from openvino.utils.data_helpers.data_dispatcher import to_c_style
-from openvino.utils.data_helpers.data_dispatcher import normalize_arrays
-from openvino.utils.data_helpers.data_dispatcher import create_shared
-from openvino.utils.data_helpers.data_dispatcher import set_request_tensor
-from openvino.utils.data_helpers.data_dispatcher import update_tensor
-from openvino.utils.data_helpers.data_dispatcher import update_inputs
-from openvino.utils.data_helpers.data_dispatcher import create_copied
-from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py
similarity index 100%
rename from src/bindings/python/src/openvino/utils/data_helpers/wrappers.py
rename to src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py
diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers/__init__.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers/__init__.py
deleted file mode 100644
index 22214fd24682da..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers/__init__.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-
-from openvino.utils.data_helpers.wrappers import tensor_from_file
-from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
-from openvino.utils.data_helpers.wrappers import OVDict
diff --git a/src/bindings/python/src/openvino/utils/decorators.py b/src/bindings/python/src/openvino/runtime/utils/decorators.py
similarity index 98%
rename from src/bindings/python/src/openvino/utils/decorators.py
rename to src/bindings/python/src/openvino/runtime/utils/decorators.py
index 9418c359d129e8..98da1ba4389ef7 100644
--- a/src/bindings/python/src/openvino/utils/decorators.py
+++ b/src/bindings/python/src/openvino/runtime/utils/decorators.py
@@ -6,8 +6,8 @@
from inspect import signature
from typing import Any, Callable, Dict, Optional, Union, get_origin, get_args
-from openvino import Node, Output
-from openvino.utils.types import NodeInput, as_node, as_nodes
+from openvino.runtime import Node, Output
+from openvino.runtime.utils.types import NodeInput, as_node, as_nodes
def _get_name(**kwargs: Any) -> Node:
diff --git a/src/bindings/python/src/openvino/runtime/utils/decorators/__init__.py b/src/bindings/python/src/openvino/runtime/utils/decorators/__init__.py
deleted file mode 100644
index bb0bac112d2c5f..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/decorators/__init__.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.decorators import _get_name
-from openvino.utils.decorators import _set_node_friendly_name
-from openvino.utils.decorators import nameable_op
-from openvino.utils.decorators import unary_op
-from openvino.utils.decorators import binary_op
-from openvino.utils.decorators import custom_preprocess_function
-from openvino.utils.decorators import MultiMethod
-from openvino.utils.decorators import registry
-from openvino.utils.decorators import overloading
diff --git a/src/bindings/python/src/openvino/utils/input_validation.py b/src/bindings/python/src/openvino/runtime/utils/input_validation.py
similarity index 98%
rename from src/bindings/python/src/openvino/utils/input_validation.py
rename to src/bindings/python/src/openvino/runtime/utils/input_validation.py
index 1de08452e1da9f..e79a16c48581b1 100644
--- a/src/bindings/python/src/openvino/utils/input_validation.py
+++ b/src/bindings/python/src/openvino/runtime/utils/input_validation.py
@@ -9,7 +9,7 @@
import numpy as np
-from openvino.exceptions import UserInputError
+from openvino.runtime.exceptions import UserInputError
log = logging.getLogger(__name__)
diff --git a/src/bindings/python/src/openvino/runtime/utils/input_validation/__init__.py b/src/bindings/python/src/openvino/runtime/utils/input_validation/__init__.py
deleted file mode 100644
index 0b49e9ea33c40d..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/input_validation/__init__.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.input_validation import assert_list_of_ints
-from openvino.utils.input_validation import _check_value
-from openvino.utils.input_validation import check_valid_attribute
-from openvino.utils.input_validation import check_valid_attributes
-from openvino.utils.input_validation import is_positive_value
-from openvino.utils.input_validation import is_non_negative_value
diff --git a/src/bindings/python/src/openvino/utils/node_factory.py b/src/bindings/python/src/openvino/runtime/utils/node_factory.py
similarity index 92%
rename from src/bindings/python/src/openvino/utils/node_factory.py
rename to src/bindings/python/src/openvino/runtime/utils/node_factory.py
index e999ae6988814a..25daf739223dba 100644
--- a/src/bindings/python/src/openvino/utils/node_factory.py
+++ b/src/bindings/python/src/openvino/runtime/utils/node_factory.py
@@ -2,16 +2,17 @@
# Copyright (C) 2018-2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
+import logging as log
-from functools import singledispatchmethod
+from functools import partial, singledispatchmethod
from typing import Any, Dict, List, Optional, Union
from pathlib import Path
from openvino._pyopenvino import NodeFactory as _NodeFactory
-from openvino import Node, Output, Extension
+from openvino.runtime import Node, Output, Extension
-from openvino.exceptions import UserInputError
+from openvino.runtime.exceptions import UserInputError
DEFAULT_OPSET = "opset13"
@@ -124,11 +125,3 @@ def _arguments_as_outputs(arguments: List[Union[Node, Output]]) -> List[Output]:
else:
outputs.extend(argument.outputs())
return outputs
-
-
-def _get_node_factory(opset_version: Optional[str] = None) -> NodeFactory:
- """Return NodeFactory configured to create operators from specified opset version."""
- if opset_version:
- return NodeFactory(opset_version)
- else:
- return NodeFactory()
diff --git a/src/bindings/python/src/openvino/runtime/utils/node_factory/__init__.py b/src/bindings/python/src/openvino/runtime/utils/node_factory/__init__.py
deleted file mode 100644
index 945ea8deb7863c..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/node_factory/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.node_factory import NodeFactory
diff --git a/src/bindings/python/src/openvino/utils/reduction.py b/src/bindings/python/src/openvino/runtime/utils/reduction.py
similarity index 95%
rename from src/bindings/python/src/openvino/utils/reduction.py
rename to src/bindings/python/src/openvino/runtime/utils/reduction.py
index e6be6d0ac9a104..71d0af8de7376e 100644
--- a/src/bindings/python/src/openvino/utils/reduction.py
+++ b/src/bindings/python/src/openvino/runtime/utils/reduction.py
@@ -4,7 +4,7 @@
from typing import Iterable, Optional
-from openvino import Node
+from openvino.runtime import Node
def get_reduction_axes(node: Node, reduction_axes: Optional[Iterable[int]]) -> Iterable[int]:
diff --git a/src/bindings/python/src/openvino/runtime/utils/reduction/__init__.py b/src/bindings/python/src/openvino/runtime/utils/reduction/__init__.py
deleted file mode 100644
index a2fbff9e793dca..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/reduction/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.reduction import get_reduction_axes
diff --git a/src/bindings/python/src/openvino/utils/types.py b/src/bindings/python/src/openvino/runtime/utils/types.py
similarity index 97%
rename from src/bindings/python/src/openvino/utils/types.py
rename to src/bindings/python/src/openvino/runtime/utils/types.py
index b3543739741d94..52f1faf8e1e839 100644
--- a/src/bindings/python/src/openvino/utils/types.py
+++ b/src/bindings/python/src/openvino/runtime/utils/types.py
@@ -9,9 +9,9 @@
import numpy as np
-from openvino.exceptions import OVTypeError
-from openvino import Node, Shape, Output, Type
-from openvino.op import Constant
+from openvino.runtime.exceptions import OVTypeError
+from openvino.runtime import Node, Shape, Output, Type
+from openvino.runtime.op import Constant
log = logging.getLogger(__name__)
diff --git a/src/bindings/python/src/openvino/runtime/utils/types/__init__.py b/src/bindings/python/src/openvino/runtime/utils/types/__init__.py
deleted file mode 100644
index 4f88d609988e8d..00000000000000
--- a/src/bindings/python/src/openvino/runtime/utils/types/__init__.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.types import TensorShape
-from openvino.utils.types import NumericData
-from openvino.utils.types import NumericType
-from openvino.utils.types import ScalarData
-from openvino.utils.types import NodeInput
-
-from openvino.utils.types import openvino_to_numpy_types_map
-from openvino.utils.types import openvino_to_numpy_types_str_map
-from openvino.utils.types import get_element_type
-from openvino.utils.types import get_element_type_str
-from openvino.utils.types import get_dtype
-from openvino.utils.types import get_numpy_ctype
-from openvino.utils.types import get_ndarray
-from openvino.utils.types import get_shape
-from openvino.utils.types import make_constant_node
-from openvino.utils.types import as_node
-from openvino.utils.types import as_nodes
diff --git a/src/bindings/python/src/openvino/package_utils.py b/src/bindings/python/src/openvino/utils.py
similarity index 97%
rename from src/bindings/python/src/openvino/package_utils.py
rename to src/bindings/python/src/openvino/utils.py
index 6aa3f3ed39b556..9890ae9b3e6460 100644
--- a/src/bindings/python/src/openvino/package_utils.py
+++ b/src/bindings/python/src/openvino/utils.py
@@ -21,9 +21,9 @@ def _add_openvino_libs_to_search_path() -> None:
if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")):
# looking for the libs in the pip installation path.
openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs"))
- elif os.path.isdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, "Library", "bin")):
+ elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")):
# looking for the libs in the conda installation path
- openvino_libs.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, "Library", "bin"))
+ openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin"))
else:
# setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable.
openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS")
diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py
deleted file mode 100644
index 2ccc79d20cce84..00000000000000
--- a/src/bindings/python/src/openvino/utils/__init__.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-"""Generic utilities. Factor related functions out to separate files."""
-
-from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name
-
-from openvino.package_utils import get_cmake_path
-from openvino.package_utils import deprecated
-from openvino.package_utils import classproperty
-from openvino.package_utils import deprecatedclassproperty
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/__init__.py b/src/bindings/python/src/openvino/utils/data_helpers/__init__.py
deleted file mode 100644
index 282547dd9df79a..00000000000000
--- a/src/bindings/python/src/openvino/utils/data_helpers/__init__.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018-2024 Intel Corporation
-# SPDX-License-Identifier: Apache-2.0
-
-from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
-from openvino.utils.data_helpers.wrappers import tensor_from_file
-from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
-from openvino.utils.data_helpers.wrappers import OVDict
diff --git a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp
index b3b92340303ced..483ec19f10a224 100644
--- a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp
+++ b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp
@@ -56,7 +56,7 @@ class ov::pass::low_precision::MarkupOptimizations : public ov::pass::ModelPass
class ov::pass::low_precision::TypeRelaxedReplacer : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("TypeRelaxedReplacer", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("low_precision::TypeRelaxedReplacer");
TypeRelaxedReplacer();
};
diff --git a/src/common/offline_transformations/include/compress_quantize_weights.hpp b/src/common/offline_transformations/include/compress_quantize_weights.hpp
index 9b2792caf93d47..90a2a434ae346a 100644
--- a/src/common/offline_transformations/include/compress_quantize_weights.hpp
+++ b/src/common/offline_transformations/include/compress_quantize_weights.hpp
@@ -102,6 +102,6 @@ class ov::pass::CompressWeightsWithFakeConvert : public ov::pass::MatcherPass {
class ov::pass::CompressQuantizeWeights : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("CompressQuantizeWeights", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("CompressQuantizeWeights");
CompressQuantizeWeights();
};
diff --git a/src/common/offline_transformations/include/pruning.hpp b/src/common/offline_transformations/include/pruning.hpp
index e573108a89eb86..13e46777fde205 100644
--- a/src/common/offline_transformations/include/pruning.hpp
+++ b/src/common/offline_transformations/include/pruning.hpp
@@ -29,7 +29,7 @@ class Pruning;
*/
class ov::pass::InitMasks : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("InitMasks", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("InitMasks");
InitMasks();
};
@@ -56,7 +56,7 @@ class ov::pass::InitConstMask : public ov::pass::MatcherPass {
*/
class ov::pass::PropagateMasks : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("PropagateMasks", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("PropagateMasks");
PropagateMasks();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp b/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp
index 06dde1ff0bbf63..be271bc71f4b55 100644
--- a/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/adaptive_pool_to_reduce.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API AdaptivePoolToReduce;
class ov::pass::AdaptivePoolToReduce : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AdaptivePoolToReduce", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AdaptivePoolToReduce");
AdaptivePoolToReduce();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp
index f63f00a455a117..3dc06301c838f2 100644
--- a/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/add_fake_quantize_fusion.hpp
@@ -27,6 +27,6 @@ class TRANSFORMATIONS_API AddFakeQuantizeFusion;
*/
class ov::pass::AddFakeQuantizeFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AddFakeQuantizeFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AddFakeQuantizeFusion");
AddFakeQuantizeFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp b/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp
index 1a7578d3551903..c18f1c96bc41bc 100644
--- a/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/align_eltwise_input_ranks.hpp
@@ -17,7 +17,7 @@ namespace pass {
class TRANSFORMATIONS_API AlignEltwiseInputRanks : public MatcherPass {
public:
- OPENVINO_RTTI("AlignEltwiseInputRanks", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AlignEltwiseInputRanks");
AlignEltwiseInputRanks();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp
index c6773de5ec894f..2d458e5e18f87f 100644
--- a/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/augru_cell_fusion.hpp
@@ -32,6 +32,6 @@ class TRANSFORMATIONS_API AUGRUCellFusion;
class ov::pass::AUGRUCellFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AUGRUCellFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AUGRUCellFusion");
AUGRUCellFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp
index 7b05f721f52400..4ab3210a633798 100644
--- a/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/batch_to_space_fusion.hpp
@@ -31,6 +31,6 @@ class TRANSFORMATIONS_API BatchToSpaceFusion;
class ov::pass::BatchToSpaceFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("BatchToSpaceFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("BatchToSpaceFusion");
BatchToSpaceFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp b/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp
index 3803281478a055..2e975e27b26f97 100644
--- a/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/binarize_weights.hpp
@@ -76,6 +76,6 @@ class TRANSFORMATIONS_API BinarizeWeights;
class ov::pass::BinarizeWeights : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("BinarizeWeights", "0");
+ OPENVINO_MATCHER_PASS_RTTI("BinarizeWeights");
BinarizeWeights();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp
index 38ae4799e932a0..0fffa95e62b04c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/broadcast_elementwise_fusion.hpp
@@ -23,6 +23,6 @@ class TRANSFORMATIONS_API BroadcastElementwiseFusion;
class ov::pass::BroadcastElementwiseFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("BroadcastElementwiseFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("BroadcastElementwiseFusion");
BroadcastElementwiseFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp b/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp
index 089f1472b7c431..ff9b8151e7e47f 100644
--- a/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/broadcast_transition.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API BroadcastTransition;
*/
class ov::pass::BroadcastTransition : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("BroadcastTransition", "0");
+ OPENVINO_MATCHER_PASS_RTTI("BroadcastTransition");
BroadcastTransition();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp
index fe966323edbb98..69870870d8758a 100644
--- a/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/clamp_fusion.hpp
@@ -29,6 +29,6 @@ class TRANSFORMATIONS_API ClampFusion;
class ov::pass::ClampFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ClampFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ClampFusion");
ClampFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp b/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp
index 77bac5753bd757..2f87e5caa8c483 100644
--- a/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/compress_float_constants.hpp
@@ -25,7 +25,7 @@ bool TRANSFORMATIONS_API is_model_optimized(const std::shared_ptr& mo
*/
class ov::pass::CompressFloatConstantsImpl : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("CompressFloatConstantsImpl", "0");
+ OPENVINO_MATCHER_PASS_RTTI("CompressFloatConstantsImpl");
/// @brief Transformation constructor
/// @param postponed If true then the transformation won't compress the constants
/// keeping them in the original type but still will insert Converts. This is
@@ -41,7 +41,7 @@ class ov::pass::CompressFloatConstantsImpl : public ov::pass::MatcherPass {
*/
class ov::pass::CompressFloatConstants : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("CompressFloatConstants", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("CompressFloatConstants");
/// @brief Transformation constructor
/// @param postponed Postponed compression, see ov::pass::CompressFloatConstantsImpl for details.
CompressFloatConstants(bool postponed = false) {
diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp
index 31b710722bf13f..2642e0cc35c39c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/concat_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ConcatFusion;
class ov::pass::ConcatFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConcatFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConcatFusion");
ConcatFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp
index 4aa5391dd42618..a1edbb5dafd32e 100644
--- a/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/concat_reduce_fusion.hpp
@@ -24,7 +24,7 @@ class TRANSFORMATIONS_API ConcatReduceFusion;
*/
class ov::pass::ReplaceConcatReduceByMinOrMax : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReplaceConcatReduceByMinOrMax", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReplaceConcatReduceByMinOrMax");
ReplaceConcatReduceByMinOrMax();
};
@@ -34,7 +34,7 @@ class ov::pass::ReplaceConcatReduceByMinOrMax : public ov::pass::MatcherPass {
*/
class ov::pass::PullSqueezeThroughEltwise : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PullSqueezeThroughEltwise", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PullSqueezeThroughEltwise");
PullSqueezeThroughEltwise();
};
@@ -76,6 +76,6 @@ class ov::pass::PullSqueezeThroughEltwise : public ov::pass::MatcherPass {
class ov::pass::ConcatReduceFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConcatReduceFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConcatReduceFusion");
ConcatReduceFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp b/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp
index ddb20338c0b01d..7859673f08e309 100644
--- a/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/concat_to_broadcast.hpp
@@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ConcatToBroadcast;
*/
class ov::pass::ConcatToBroadcast : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConcatToBroadcast", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConcatToBroadcast");
ConcatToBroadcast();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp
index 9e2ba5194367ba..0ae7cc67bd4be4 100644
--- a/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/conv_mul_fusion.hpp
@@ -23,24 +23,24 @@ class TRANSFORMATIONS_API GroupConvolutionBackpropDataMultiplyFusion;
class ov::pass::ConvolutionMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvolutionMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvolutionMultiplyFusion");
ConvolutionMultiplyFusion();
};
class ov::pass::GroupConvolutionMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GroupConvolutionMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GroupConvolutionMultiplyFusion");
GroupConvolutionMultiplyFusion();
};
class ov::pass::ConvolutionBackpropDataMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvolutionBackpropDataMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvolutionBackpropDataMultiplyFusion");
ConvolutionBackpropDataMultiplyFusion();
};
class ov::pass::GroupConvolutionBackpropDataMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GroupConvolutionBackpropDataMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GroupConvolutionBackpropDataMultiplyFusion");
GroupConvolutionBackpropDataMultiplyFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp b/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp
index a60a15d37be9e7..b87013067ca18c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/conv_to_binary_conv.hpp
@@ -72,6 +72,6 @@ class TRANSFORMATIONS_API ConvToBinaryConv;
*/
class ov::pass::ConvToBinaryConv : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvToBinaryConv", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvToBinaryConv");
ConvToBinaryConv();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp
index d778c255160281..6982e985016402 100644
--- a/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.hpp
@@ -27,6 +27,6 @@ class TRANSFORMATIONS_API ConvertNmsGatherPathToUnsigned;
*/
class ov::pass::ConvertNmsGatherPathToUnsigned : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConvertNmsGatherPathToUnsigned", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertNmsGatherPathToUnsigned");
ConvertNmsGatherPathToUnsigned();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp
index 7c0b6b5be95d5d..7dc5639d5e7cf4 100644
--- a/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/convert_quantize_dequantize.hpp
@@ -31,6 +31,6 @@ class TRANSFORMATIONS_API ConvertQuantizeDequantize;
class ov::pass::ConvertQuantizeDequantize : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvertQuantizeDequantize", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvertQuantizeDequantize");
ConvertQuantizeDequantize();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp b/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp
index dfd9eef8069665..f20716cbdc7023 100644
--- a/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/convert_u4_weights_zero_point_to_scalar.hpp
@@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ConvertU4WeightsZeroPointToScalar;
*/
class ov::pass::ConvertU4WeightsZeroPointToScalar : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvertU4WeightsZeroPointToScalar", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvertU4WeightsZeroPointToScalar");
ConvertU4WeightsZeroPointToScalar();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp
index a99d4ea801d8ec..b6b909f23afc18 100644
--- a/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/convolution_to_group_convolution_fusion.hpp
@@ -24,7 +24,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API ConvolutionToGroupConvolutionFusion : public MatcherPass {
public:
- OPENVINO_RTTI("ConvolutionToGroupConvolutionFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvolutionToGroupConvolutionFusion");
ConvolutionToGroupConvolutionFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp
index 53e6b623d67d5a..2aa5b8f0efa8c1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/depth_to_space_fusion.hpp
@@ -42,6 +42,6 @@ class TRANSFORMATIONS_API DepthToSpaceFusion;
class ov::pass::DepthToSpaceFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DepthToSpaceFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DepthToSpaceFusion");
DepthToSpaceFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp b/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp
index 204190cafd305c..f946a1792c0323 100644
--- a/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/dilated_convolution_converter.hpp
@@ -29,6 +29,6 @@ class TRANSFORMATIONS_API DilatedConvolutionConverter;
class ov::pass::DilatedConvolutionConverter : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DilatedConvolutionConverter", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DilatedConvolutionConverter");
DilatedConvolutionConverter();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp
index 405e8ff7288e5d..de0840c0dce97f 100644
--- a/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/disable_random_uniform_constant_folding.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API DisableRandomUniformConstantFolding;
*/
class ov::pass::DisableRandomUniformConstantFolding : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DisableRandomUniformConstantFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DisableRandomUniformConstantFolding");
DisableRandomUniformConstantFolding();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp
index 1526fea966347d..912c21a29ba7c6 100644
--- a/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/disable_shapeof_constant_folding.hpp
@@ -19,6 +19,6 @@ class TRANSFORMATIONS_API DisableShapeOfConstantFolding;
class ov::pass::DisableShapeOfConstantFolding : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DisableShapeOfConstantFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DisableShapeOfConstantFolding");
explicit DisableShapeOfConstantFolding(bool check_shape = true);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp
index 37a5b1f66a5551..fb9f8d5b122110 100644
--- a/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/divide_fusion.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API DivideFusion;
*/
class ov::pass::DivideFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DivideFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DivideFusion");
DivideFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp b/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp
index 2ad17f308d46bc..6fdfaa7cc7caa1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/dropout_with_random_uniform_replacer.hpp
@@ -36,6 +36,6 @@ class TRANSFORMATIONS_API DropoutWithRandomUniformReplacer;
*/
class ov::pass::DropoutWithRandomUniformReplacer : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DropoutWithRandomUniformReplacer", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DropoutWithRandomUniformReplacer");
DropoutWithRandomUniformReplacer();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp
index 058daba182b8a6..d9b7db1d08519b 100644
--- a/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_duplicate_ti_inputs.hpp
@@ -26,6 +26,6 @@ class TRANSFORMATIONS_API EliminateDuplicateTIInputs;
class ov::pass::EliminateDuplicateTIInputs : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateDuplicateTIInputs", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateDuplicateTIInputs");
EliminateDuplicateTIInputs();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp
index ca58bb504fd811..818e312e91f3d2 100644
--- a/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_loop_inputs_outputs.hpp
@@ -30,6 +30,6 @@ class TRANSFORMATIONS_API EliminateLoopInputsOutputs;
class ov::pass::EliminateLoopInputsOutputs : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateLoopInputsOutputs", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateLoopInputsOutputs");
EliminateLoopInputsOutputs();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp b/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp
index b0ce4581a25569..95f52601c031ab 100644
--- a/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/eliminate_unsqueeze_gather.hpp
@@ -24,7 +24,7 @@ class TRANSFORMATIONS_API EliminateGatherUnsqueeze;
class ov::pass::EliminateUnsqueezeGather : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateUnsqueezeGather", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateUnsqueezeGather");
EliminateUnsqueezeGather();
};
@@ -38,6 +38,6 @@ class ov::pass::EliminateUnsqueezeGather : public ov::pass::MatcherPass {
class ov::pass::EliminateGatherUnsqueeze : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateGatherUnsqueeze", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateGatherUnsqueeze");
EliminateGatherUnsqueeze();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp b/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp
index ab515ce65ac83b..dc81277841570d 100644
--- a/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/enable_shapeof_constant_folding.hpp
@@ -17,7 +17,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API EnableShapeOfConstantFolding : public MatcherPass {
public:
- OPENVINO_RTTI("EnableShapeOfConstantFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EnableShapeOfConstantFolding");
explicit EnableShapeOfConstantFolding(bool check_shape = true);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp b/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp
index 8775d93644456e..89024746ee7181 100644
--- a/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/fold_subgraph_empty_inputs.hpp
@@ -34,7 +34,7 @@ TRANSFORMATIONS_API bool fold_subgraph_empty_inputs_is_disabled(const std::share
class ov::pass::FoldSubgraphEmptyInputs : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("FoldSubgraphEmptyInputs", "0");
+ OPENVINO_MATCHER_PASS_RTTI("FoldSubgraphEmptyInputs");
FoldSubgraphEmptyInputs();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp
index 3b48e9da740269..d3215c8cb7168d 100644
--- a/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/fq_mul_fusion.hpp
@@ -27,6 +27,6 @@ class TRANSFORMATIONS_API FakeQuantizeMulFusion;
class ov::pass::FakeQuantizeMulFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("FakeQuantizeMulFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("FakeQuantizeMulFusion");
FakeQuantizeMulFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp
index e4004d794d8ec7..361872e80b1d60 100644
--- a/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/fq_reshape_fusion.hpp
@@ -27,6 +27,6 @@ class TRANSFORMATIONS_API FakeQuantizeReshapeFusion;
class ov::pass::FakeQuantizeReshapeFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("FakeQuantizeReshapeFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("FakeQuantizeReshapeFusion");
FakeQuantizeReshapeFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp b/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp
index 3449151ab93ac5..51177738c1e2d5 100644
--- a/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/fuse_rotary_positional_embeddings.hpp
@@ -26,55 +26,55 @@ class TRANSFORMATIONS_API RoPEShareCosSin;
class ov::pass::RoPEFusionGPTNEOX : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionGPTNEOX", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionGPTNEOX");
RoPEFusionGPTNEOX();
};
class ov::pass::RoPEFusionFlux : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionFlux", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionFlux");
RoPEFusionFlux();
};
class ov::pass::RoPEFusionGPTJ : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionGPTJ", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionGPTJ");
RoPEFusionGPTJ();
};
class ov::pass::RoPEFusionChatGLM : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionChatGLM", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionChatGLM");
RoPEFusionChatGLM(int split_output_id, const bool support_2d_rope = false);
};
class ov::pass::RoPEFusionQwen : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionQwen", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionQwen");
RoPEFusionQwen(int split_output_id);
};
class ov::pass::RoPEFusionIOSlicing : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionIOSlicing", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionIOSlicing");
RoPEFusionIOSlicing();
};
class ov::pass::RoPEFusionPreprocess : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionPreprocess", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionPreprocess");
RoPEFusionPreprocess();
};
class ov::pass::RoPEFusionCosSinPreprocess : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEFusionCosSinPreprocess", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEFusionCosSinPreprocess");
RoPEFusionCosSinPreprocess();
};
class ov::pass::RoPEShareCosSin : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RoPEShareCosSin", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RoPEShareCosSin");
RoPEShareCosSin();
private:
@@ -90,7 +90,7 @@ class ov::pass::RoPEShareCosSin : public ov::pass::MatcherPass {
*/
class ov::pass::RoPEFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("RoPEFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("RoPEFusion");
RoPEFusion(bool support_2d_rope = false) {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp
index c3e50b7c992a53..7fd9826b0374be 100644
--- a/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/gelu_fusion.hpp
@@ -31,7 +31,7 @@ class TRANSFORMATIONS_API GeluFusionWithTanhNoPower;
*/
class ov::pass::GeluFusionWithErfOne : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithErfOne", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfOne");
GeluFusionWithErfOne();
};
@@ -42,7 +42,7 @@ class ov::pass::GeluFusionWithErfOne : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusionWithErfTwo : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithErfTwo", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfTwo");
GeluFusionWithErfTwo();
};
@@ -53,7 +53,7 @@ class ov::pass::GeluFusionWithErfTwo : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusionWithErfThree : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithErfThree", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfThree");
GeluFusionWithErfThree();
};
@@ -64,7 +64,7 @@ class ov::pass::GeluFusionWithErfThree : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusionWithErfFour : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithErfFour", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithErfFour");
GeluFusionWithErfFour();
};
@@ -75,7 +75,7 @@ class ov::pass::GeluFusionWithErfFour : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusionWithTanh : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithTanh", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithTanh");
GeluFusionWithTanh();
};
@@ -86,7 +86,7 @@ class ov::pass::GeluFusionWithTanh : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusionWithTanhNoPower : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GeluFusionWithTanhNoPower", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GeluFusionWithTanhNoPower");
GeluFusionWithTanhNoPower();
};
@@ -96,7 +96,7 @@ class ov::pass::GeluFusionWithTanhNoPower : public ov::pass::MatcherPass {
*/
class ov::pass::GeluFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("GeluFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("GeluFusion");
GeluFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp
index 7ec71a05027d80..e55a76e031f8f6 100644
--- a/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/glu_fusion.hpp
@@ -13,7 +13,7 @@ namespace pass {
class TRANSFORMATIONS_API GLUFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GLUFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GLUFusion");
GLUFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp
index 50bc5ac370a74c..12031de6fc1c92 100644
--- a/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/gru_cell_fusion.hpp
@@ -35,6 +35,6 @@ class TRANSFORMATIONS_API GRUCellFusion;
class ov::pass::GRUCellFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GRUCellFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GRUCellFusion");
GRUCellFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp
index 04841837a5a76b..5b301246c7a541 100644
--- a/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/hsigmoid_fusion.hpp
@@ -29,7 +29,7 @@ class TRANSFORMATIONS_API HSigmoidFusionWithClampDiv;
*/
class ov::pass::HSigmoidFusionWithReluDiv : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSigmoidFusionWithReluDiv", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithReluDiv");
HSigmoidFusionWithReluDiv();
};
@@ -39,7 +39,7 @@ class ov::pass::HSigmoidFusionWithReluDiv : public ov::pass::MatcherPass {
*/
class ov::pass::HSigmoidFusionWithReluMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSigmoidFusionWithReluMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithReluMul");
HSigmoidFusionWithReluMul();
};
@@ -49,7 +49,7 @@ class ov::pass::HSigmoidFusionWithReluMul : public ov::pass::MatcherPass {
*/
class ov::pass::HSigmoidFusionWithoutRelu : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSigmoidFusionWithoutRelu", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithoutRelu");
HSigmoidFusionWithoutRelu();
};
@@ -59,7 +59,7 @@ class ov::pass::HSigmoidFusionWithoutRelu : public ov::pass::MatcherPass {
*/
class ov::pass::HSigmoidFusionWithClampMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSigmoidFusionWithClampMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithClampMul");
HSigmoidFusionWithClampMul();
};
@@ -69,7 +69,7 @@ class ov::pass::HSigmoidFusionWithClampMul : public ov::pass::MatcherPass {
*/
class ov::pass::HSigmoidFusionWithClampDiv : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSigmoidFusionWithClampDiv", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSigmoidFusionWithClampDiv");
HSigmoidFusionWithClampDiv();
};
@@ -79,7 +79,7 @@ class ov::pass::HSigmoidFusionWithClampDiv : public ov::pass::MatcherPass {
*/
class ov::pass::HSigmoidFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("HSigmoidFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("HSigmoidFusion");
HSigmoidFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp
index ede2769ec278f1..7b1faa990dd360 100644
--- a/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/hswish_fusion.hpp
@@ -28,7 +28,7 @@ class TRANSFORMATIONS_API HSwishFusionWithClamp;
*/
class ov::pass::HSwishFusionWithReluDiv : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSwishFusionWithReluDiv", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithReluDiv");
HSwishFusionWithReluDiv();
};
@@ -38,7 +38,7 @@ class ov::pass::HSwishFusionWithReluDiv : public ov::pass::MatcherPass {
*/
class ov::pass::HSwishFusionWithReluMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSwishFusionWithReluMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithReluMul");
HSwishFusionWithReluMul();
};
@@ -48,7 +48,7 @@ class ov::pass::HSwishFusionWithReluMul : public ov::pass::MatcherPass {
*/
class ov::pass::HSwishFusionWithHSigmoid : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSwishFusionWithHSigmoid", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithHSigmoid");
HSwishFusionWithHSigmoid();
};
@@ -58,7 +58,7 @@ class ov::pass::HSwishFusionWithHSigmoid : public ov::pass::MatcherPass {
*/
class ov::pass::HSwishFusionWithClamp : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("HSwishFusionWithClamp", "0");
+ OPENVINO_MATCHER_PASS_RTTI("HSwishFusionWithClamp");
HSwishFusionWithClamp();
};
@@ -68,7 +68,7 @@ class ov::pass::HSwishFusionWithClamp : public ov::pass::MatcherPass {
*/
class ov::pass::HSwishFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("HSwishFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("HSwishFusion");
HSwishFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp
index ff7495e5a2d405..af6ba9055b45e1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/interpolate_sequence_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API InterpolateSequenceFusion;
*/
class ov::pass::InterpolateSequenceFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("InterpolateSequenceFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("InterpolateSequenceFusion");
InterpolateSequenceFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp
index 42abc74e0dbc2a..93765f2e39c2ef 100644
--- a/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/leaky_relu_fusion.hpp
@@ -26,6 +26,6 @@ class TRANSFORMATIONS_API LeakyReluFusion;
class ov::pass::LeakyReluFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("LeakyReluFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("LeakyReluFusion");
LeakyReluFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp
index 2e239e40c332b9..cc71a676eb3b60 100644
--- a/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/lin_op_sequence_fusion.hpp
@@ -23,19 +23,19 @@ class TRANSFORMATIONS_API MultiplyMultiplyFusion;
class ov::pass::AddMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AddMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AddMultiplyFusion");
AddMultiplyFusion();
};
class ov::pass::AddAddFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AddAddFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AddAddFusion");
AddAddFusion();
};
class ov::pass::MultiplyMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MultiplyMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MultiplyMultiplyFusion");
MultiplyMultiplyFusion();
};
@@ -45,7 +45,7 @@ class ov::pass::MultiplyMultiplyFusion : public ov::pass::MatcherPass {
*/
class ov::pass::LinOpSequenceFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("LinOpSequenceFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("LinOpSequenceFusion");
LinOpSequenceFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp
index 8422ad95f262c6..e31f99fdb63872 100644
--- a/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/lora_subgraph_fusion.hpp
@@ -20,6 +20,6 @@ class TRANSFORMATIONS_API LoraSubgraphFusion;
class ov::pass::LoraSubgraphFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("LoraSubgraphFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("LoraSubgraphFusion");
LoraSubgraphFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp
index 947e39edcfd0e0..2acbbf626cd6f3 100644
--- a/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/lstm_cell_fusion.hpp
@@ -24,7 +24,7 @@ class TRANSFORMATIONS_API LSTMCellFusionWithSplitWeights;
*/
class ov::pass::LSTMCellFusionWithJointWeights : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("LSTMCellFusionWithJointWeights", "0");
+ OPENVINO_MATCHER_PASS_RTTI("LSTMCellFusionWithJointWeights");
LSTMCellFusionWithJointWeights();
};
@@ -35,7 +35,7 @@ class ov::pass::LSTMCellFusionWithJointWeights : public ov::pass::MatcherPass {
*/
class ov::pass::LSTMCellFusionWithSplitWeights : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("LSTMCellFusionWithSplitWeights", "0");
+ OPENVINO_MATCHER_PASS_RTTI("LSTMCellFusionWithSplitWeights");
LSTMCellFusionWithSplitWeights();
};
@@ -45,7 +45,7 @@ class ov::pass::LSTMCellFusionWithSplitWeights : public ov::pass::MatcherPass {
*/
class ov::pass::LSTMCellFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("LSTMCellFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("LSTMCellFusion");
LSTMCellFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp b/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp
index c555b991de07ba..09db8db879dbeb 100644
--- a/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/mark_rope_input_to_keep_in_mixed_precision.hpp
@@ -27,7 +27,7 @@ namespace pass {
class TRANSFORMATIONS_API MarkRopeInputsToKeepInMixedPrecision : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MarkRopeInputsToKeepInMixedPrecision", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MarkRopeInputsToKeepInMixedPrecision");
MarkRopeInputsToKeepInMixedPrecision();
private:
@@ -35,4 +35,4 @@ class TRANSFORMATIONS_API MarkRopeInputsToKeepInMixedPrecision : public ov::pass
};
} // namespace pass
-} // namespace ov
\ No newline at end of file
+} // namespace ov
diff --git a/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp b/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp
index 7626be5f877527..313f5cd244a32e 100644
--- a/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/matmul_const_transposes_extraction.hpp
@@ -18,7 +18,7 @@ namespace pass {
class TRANSFORMATIONS_API MatMulConstTransposesExtraction : public MatcherPass {
public:
- OPENVINO_RTTI("MatMulConstTransposesExtraction", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MatMulConstTransposesExtraction");
MatMulConstTransposesExtraction();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp
index 7994a04be7972d..767f44a8393e74 100644
--- a/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/matmul_multiply_fusion.hpp
@@ -58,6 +58,6 @@ class TRANSFORMATIONS_API MatMulMultiplyFusion;
*/
class ov::pass::MatMulMultiplyFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MatMulMultiplyFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MatMulMultiplyFusion");
MatMulMultiplyFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp
index 8dc6e0149c881f..c905ee2f336232 100644
--- a/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/mish_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API MishFusion;
*/
class ov::pass::MishFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MishFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MishFusion");
MishFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp b/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp
index 4f704b089190a4..dd303ed1bfec45 100644
--- a/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/move_eltwise_up_data_movement.hpp
@@ -29,7 +29,7 @@ namespace pass {
/// └────────────────┘ └────────────────┘
class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovScalar : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MoveEltwiseUpThroughDataMovScalar", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MoveEltwiseUpThroughDataMovScalar");
MoveEltwiseUpThroughDataMovScalar(std::vector allowed_data_movement_ops);
};
@@ -50,13 +50,13 @@ class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovScalar : public ov::pass::M
/// └────────────────┘ └────────────────────┘ └───────────┘ └─────────────┘
class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMovPerChannel : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MoveEltwiseUpThroughDataMovPerChannel", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MoveEltwiseUpThroughDataMovPerChannel");
MoveEltwiseUpThroughDataMovPerChannel();
};
class TRANSFORMATIONS_API MoveEltwiseUpThroughDataMov : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("MoveEltwiseUpThroughDataMov", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("MoveEltwiseUpThroughDataMov");
MoveEltwiseUpThroughDataMov(std::vector allowed_data_movement_ops = get_default_allowed_ops()) {
this->add_matcher(allowed_data_movement_ops);
this->add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp
index 4fae74debc1014..84fe28e512549c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/mul_conv_fusion.hpp
@@ -80,24 +80,24 @@ class TRANSFORMATIONS_API MultiplyGroupConvolutionBackpropDataFusion;
class ov::pass::MultiplyConvolutionFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MultiplyConvolutionFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MultiplyConvolutionFusion");
MultiplyConvolutionFusion();
};
class ov::pass::MultiplyGroupConvolutionFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MultiplyGroupConvolutionFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MultiplyGroupConvolutionFusion");
MultiplyGroupConvolutionFusion();
};
class ov::pass::MultiplyConvolutionBackpropDataFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MultiplyConvolutionBackpropDataFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MultiplyConvolutionBackpropDataFusion");
MultiplyConvolutionBackpropDataFusion();
};
class ov::pass::MultiplyGroupConvolutionBackpropDataFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MultiplyGroupConvolutionBackpropDataFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MultiplyGroupConvolutionBackpropDataFusion");
MultiplyGroupConvolutionBackpropDataFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp
index f66e52f82c6c0e..e5afe2b7ace09c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/mul_fake_quantize_fusion.hpp
@@ -27,6 +27,6 @@ class TRANSFORMATIONS_API MulFakeQuantizeFusion;
*/
class ov::pass::MulFakeQuantizeFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MulFakeQuantizeFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MulFakeQuantizeFusion");
MulFakeQuantizeFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp
index dc8561d89e18ab..5433a081768090 100644
--- a/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/mvn_fusion.hpp
@@ -28,7 +28,7 @@ class TRANSFORMATIONS_API MVNFusionWithConstantsInside;
*/
class ov::pass::MVNFusionWithoutConstants : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MVNFusionWithoutConstants", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MVNFusionWithoutConstants");
MVNFusionWithoutConstants();
};
@@ -40,7 +40,7 @@ class ov::pass::MVNFusionWithoutConstants : public ov::pass::MatcherPass {
*/
class ov::pass::MVNFusionWithConstantsInside : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MVNFusionWithConstantsInside", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MVNFusionWithConstantsInside");
MVNFusionWithConstantsInside();
};
@@ -50,7 +50,7 @@ class ov::pass::MVNFusionWithConstantsInside : public ov::pass::MatcherPass {
*/
class ov::pass::MVNFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("MVNFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("MVNFusion");
MVNFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp
index 04b45ee6c67cd3..338e48afd77f64 100644
--- a/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/nearest_neighbor_upsampling_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API NearestNeighborUpsamplingFusion;
*/
class ov::pass::NearestNeighborUpsamplingFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("NearestNeighborUpsamplingFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("NearestNeighborUpsamplingFusion");
NearestNeighborUpsamplingFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp
index d579cb0c8a9ec1..e0ad6ccb98453a 100644
--- a/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/nonzero_horizontal_fusion.hpp
@@ -23,6 +23,6 @@ class TRANSFORMATIONS_API NonZeroHorizontalFusion;
*/
class ov::pass::NonZeroHorizontalFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("NonZeroHorizontalFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("NonZeroHorizontalFusion");
NonZeroHorizontalFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp b/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp
index 76190906d157e2..55cb8eeb2cf0c1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp
@@ -39,7 +39,7 @@ class TRANSFORMATIONS_API PrepareShapeOpsForEliminationAroundBE;
*/
class ov::pass::EliminateReduceReshape : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateReduceReshape", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateReduceReshape");
EliminateReduceReshape();
};
@@ -49,7 +49,7 @@ class ov::pass::EliminateReduceReshape : public ov::pass::MatcherPass {
*/
class ov::pass::EliminatePad : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminatePad", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminatePad");
EliminatePad();
};
@@ -59,7 +59,7 @@ class ov::pass::EliminatePad : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateConvert : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateConvert", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateConvert");
EliminateConvert();
};
@@ -69,7 +69,7 @@ class ov::pass::EliminateConvert : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateConvertNonZero : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateConvertNonZero", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateConvertNonZero");
EliminateConvertNonZero();
};
@@ -79,7 +79,7 @@ class ov::pass::EliminateConvertNonZero : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateConcat : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateConcat", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateConcat");
EliminateConcat();
};
@@ -89,7 +89,7 @@ class ov::pass::EliminateConcat : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateSplit : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateSplit", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateSplit");
EliminateSplit();
};
@@ -99,7 +99,7 @@ class ov::pass::EliminateSplit : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateSqueeze : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateSqueeze", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateSqueeze");
EliminateSqueeze();
};
@@ -109,7 +109,7 @@ class ov::pass::EliminateSqueeze : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateUnsqueeze : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateUnsqueeze", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateUnsqueeze");
EliminateUnsqueeze();
};
@@ -119,7 +119,7 @@ class ov::pass::EliminateUnsqueeze : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateTranspose : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateTranspose", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateTranspose");
EliminateTranspose();
};
@@ -129,7 +129,7 @@ class ov::pass::EliminateTranspose : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateEltwise : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateEltwise", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateEltwise");
EliminateEltwise();
};
@@ -139,13 +139,13 @@ class ov::pass::EliminateEltwise : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateScatterUpdate : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateScatterUpdate", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateScatterUpdate");
EliminateScatterUpdate();
};
class ov::pass::NopElimination : public GraphRewrite {
public:
- OPENVINO_RTTI("NopElimination", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("NopElimination");
NopElimination(bool use_shape_for_elimination = true);
};
@@ -155,7 +155,7 @@ class ov::pass::NopElimination : public GraphRewrite {
*/
class ov::pass::EliminateSplitConcat : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateSplitConcat", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateSplitConcat");
EliminateSplitConcat();
};
@@ -165,7 +165,7 @@ class ov::pass::EliminateSplitConcat : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateNopBroadcast : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateNopBroadcast", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateNopBroadcast");
EliminateNopBroadcast();
};
@@ -177,7 +177,7 @@ class ov::pass::EliminateNopBroadcast : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateSliceBeforeGatherElements : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateSliceBeforeGatherElements", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateSliceBeforeGatherElements");
EliminateSliceBeforeGatherElements();
};
@@ -188,7 +188,7 @@ class ov::pass::EliminateSliceBeforeGatherElements : public ov::pass::MatcherPas
*/
class ov::pass::EliminateStridedSlice : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateStridedSlice", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateStridedSlice");
EliminateStridedSlice();
};
@@ -199,7 +199,7 @@ class ov::pass::EliminateStridedSlice : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateSlice : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateSlice", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateSlice");
EliminateSlice();
};
@@ -210,7 +210,7 @@ class ov::pass::EliminateSlice : public ov::pass::MatcherPass {
*/
class ov::pass::EliminateStridedSliceByShape : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EliminateStridedSliceByShape", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EliminateStridedSliceByShape");
EliminateStridedSliceByShape();
};
@@ -222,6 +222,6 @@ class ov::pass::EliminateStridedSliceByShape : public ov::pass::MatcherPass {
*/
class ov::pass::PrepareShapeOpsForEliminationAroundBE : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PrepareShapeOpsForEliminationAroundBE", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PrepareShapeOpsForEliminationAroundBE");
PrepareShapeOpsForEliminationAroundBE();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp
index 39355ec6af5ec4..01ac902140f01b 100644
--- a/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/normalize_l2_fusion.hpp
@@ -31,6 +31,6 @@ class TRANSFORMATIONS_API NormalizeL2Fusion;
*/
class ov::pass::NormalizeL2Fusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("NormalizeL2Fusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("NormalizeL2Fusion");
NormalizeL2Fusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp b/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp
index cb642795254791..961c5e893e8119 100644
--- a/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/optimize_strided_slice.hpp
@@ -71,7 +71,7 @@ class ov::pass::GroupedSliceToVSplitOptimization : public ov::pass::ModelPass {
*/
class ov::pass::SliceSequenceToSingleSlice : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SliceSequenceToSingleSlice", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SliceSequenceToSingleSlice");
SliceSequenceToSingleSlice();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp
index 799fe0a8a4ea81..628391547da82c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/pad_fusion.hpp
@@ -30,7 +30,7 @@ class TRANSFORMATIONS_API PadFusionGroupConvolutionBackpropData;
*/
class ov::pass::PadFusionAvgPool : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PadFusionAvgPool", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PadFusionAvgPool");
PadFusionAvgPool();
};
@@ -43,7 +43,7 @@ class ov::pass::PadFusionAvgPool : public ov::pass::MatcherPass {
*/
class ov::pass::PadFusionConvolution : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PadFusionConvolution", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PadFusionConvolution");
PadFusionConvolution();
};
@@ -57,7 +57,7 @@ class ov::pass::PadFusionConvolution : public ov::pass::MatcherPass {
*/
class ov::pass::PadFusionConvolutionBackpropData : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PadFusionConvolutionBackpropData", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PadFusionConvolutionBackpropData");
PadFusionConvolutionBackpropData();
};
@@ -70,7 +70,7 @@ class ov::pass::PadFusionConvolutionBackpropData : public ov::pass::MatcherPass
*/
class ov::pass::PadFusionGroupConvolution : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PadFusionGroupConvolution", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PadFusionGroupConvolution");
PadFusionGroupConvolution();
};
@@ -84,13 +84,13 @@ class ov::pass::PadFusionGroupConvolution : public ov::pass::MatcherPass {
*/
class ov::pass::PadFusionGroupConvolutionBackpropData : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PadFusionGroupConvolutionBackpropData", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PadFusionGroupConvolutionBackpropData");
PadFusionGroupConvolutionBackpropData();
};
class ov::pass::PadFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("PadFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("PadFusion");
PadFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp
index b2ba7ca9447450..729d32375c9eb1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/prelu_fusion.hpp
@@ -41,7 +41,7 @@ class TRANSFORMATIONS_API PReluFusionNegReluMulAdd;
*/
class ov::pass::PReluFusionNegativeAdd : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionNegativeAdd", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegativeAdd");
PReluFusionNegativeAdd();
};
@@ -60,7 +60,7 @@ class ov::pass::PReluFusionNegativeAdd : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusionNegativeSub : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionNegativeSub", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegativeSub");
PReluFusionNegativeSub();
};
@@ -79,7 +79,7 @@ class ov::pass::PReluFusionNegativeSub : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusionMultiplyAdd : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionMultiplyAdd", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionMultiplyAdd");
PReluFusionMultiplyAdd();
};
@@ -98,7 +98,7 @@ class ov::pass::PReluFusionMultiplyAdd : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusionMultiplySub : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionMultiplySub", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionMultiplySub");
PReluFusionMultiplySub();
};
@@ -119,7 +119,7 @@ class ov::pass::PReluFusionMultiplySub : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusionAbsSubMulMulAdd : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionAbsSubMulMulAdd", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionAbsSubMulMulAdd");
PReluFusionAbsSubMulMulAdd();
};
@@ -138,7 +138,7 @@ class ov::pass::PReluFusionAbsSubMulMulAdd : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusionNegReluMulAdd : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PReluFusionNegReluMulAdd", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PReluFusionNegReluMulAdd");
PReluFusionNegReluMulAdd();
};
@@ -148,7 +148,7 @@ class ov::pass::PReluFusionNegReluMulAdd : public ov::pass::MatcherPass {
*/
class ov::pass::PReluFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("PReluFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("PReluFusion");
PReluFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp b/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp
index c31902cd478bfa..86f54e9dc03ac5 100644
--- a/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/pull_through_reduce.hpp
@@ -25,7 +25,7 @@ class TRANSFORMATIONS_API PullReshapeThroughReduce;
*/
class ov::pass::PullUnsqueezeThroughReduce : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PullUnsqueezeThroughReduce", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PullUnsqueezeThroughReduce");
PullUnsqueezeThroughReduce();
};
@@ -37,7 +37,7 @@ class ov::pass::PullUnsqueezeThroughReduce : public ov::pass::MatcherPass {
*/
class ov::pass::PullReshapeThroughReduce : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PullReshapeThroughReduce", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PullReshapeThroughReduce");
PullReshapeThroughReduce();
};
@@ -49,7 +49,7 @@ class ov::pass::PullReshapeThroughReduce : public ov::pass::MatcherPass {
*/
class ov::pass::PullThroughReduce : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("PullThroughReduce", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("PullThroughReduce");
PullThroughReduce() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp b/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp
index c4aa71724a07a3..5e92d0eab4247c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/pull_transpose_through_fq.hpp
@@ -20,6 +20,6 @@ class TRANSFORMATIONS_API PullTransposeThroughFQUp;
class ov::pass::PullTransposeThroughFQUp : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PullTransposeThroughFQUp", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PullTransposeThroughFQUp");
PullTransposeThroughFQUp();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp
index 198666e9a02673..1f4c76ee810612 100644
--- a/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/random_uniform_fusion.hpp
@@ -23,6 +23,6 @@ class TRANSFORMATIONS_API RandomUniformFusion;
*/
class ov::pass::RandomUniformFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RandomUniformFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RandomUniformFusion");
RandomUniformFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp b/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp
index 20daf9173b87c8..a24ce14c43aaeb 100644
--- a/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/reduce_merge.hpp
@@ -64,6 +64,6 @@ class TRANSFORMATIONS_API ReduceMerge;
*/
class ov::pass::ReduceMerge : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReduceMerge", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReduceMerge");
ReduceMerge();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp
index 2827be2cdb5738..b7c5978e1458e1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/reduce_reshape_fusion.hpp
@@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ReduceReshapeFusion;
*/
class ov::pass::ReduceReshapeFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReduceReshapeFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReduceReshapeFusion");
ReduceReshapeFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp
index 8d2895b378c774..04ffa7ddb4b8b0 100644
--- a/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/relu_fake_quantize_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ReluFakeQuantizeFusion;
class ov::pass::ReluFakeQuantizeFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReluFakeQuantizeFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReluFakeQuantizeFusion");
ReluFakeQuantizeFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp b/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp
index 5c746cd4dde987..881fd9cb23e9c3 100644
--- a/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/remove_concat_zero_dim_input.hpp
@@ -24,7 +24,7 @@ class OPENVINO_API DisableRemoveConcatZeroDimInput;
class RemoveConcatZeroDimInput : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RemoveConcatZeroDimInput", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RemoveConcatZeroDimInput");
RemoveConcatZeroDimInput();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp b/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp
index 40dfb824d2ece2..0965f06a465770 100644
--- a/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/remove_filtering_boxes_by_size.hpp
@@ -21,12 +21,12 @@ class TRANSFORMATIONS_API RemoveFilteringBoxesBySize;
class ov::pass::FuseFilteringBoxesBySize : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("FuseFilteringBoxesBySize", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("FuseFilteringBoxesBySize");
FuseFilteringBoxesBySize();
};
class ov::pass::RemoveFilteringBoxesBySize : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RemoveFilteringBoxesBySize", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RemoveFilteringBoxesBySize");
RemoveFilteringBoxesBySize();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp b/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp
index 9ced2036d9906b..6c5a629a2fa840 100644
--- a/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/reshape_prelu.hpp
@@ -22,6 +22,6 @@ class TRANSFORMATIONS_API ReshapePRelu;
class ov::pass::ReshapePRelu : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapePRelu", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapePRelu");
ReshapePRelu();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp
index 5fa22e7feb0fe6..5aaed4a6be32ad 100644
--- a/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/reshape_sequence_fusion.hpp
@@ -23,6 +23,6 @@ class TRANSFORMATIONS_API ReshapeSequenceFusion;
class ov::pass::ReshapeSequenceFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeSequenceFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeSequenceFusion");
ReshapeSequenceFusion(bool use_shape_for_elimination = true);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp
index d8cb02a596ab6c..0a63b3cb6e9a7c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/rms_fusion.hpp
@@ -29,7 +29,7 @@ namespace pass {
class RMSFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("RMSFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("RMSFusion");
RMSFusion(bool force_tail_convert = true);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp
new file mode 100644
index 00000000000000..84383b777604ea
--- /dev/null
+++ b/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp
@@ -0,0 +1,60 @@
+// Copyright (C) 2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "openvino/pass/matcher_pass.hpp"
+#include "transformations_visibility.hpp"
+
+namespace ov {
+namespace pass {
+
+/// This pass transforms the following sub-graph to a single Scaled Dot Product Attention operation.
+/// Before:
+/// ┌───────┐ ┌───────┐ ┌───────┐
+/// │ Q │ │ K │ │ V │
+/// └───┬───┘ └───┬───┘ └───┬───┘
+/// │ │ │
+/// │ │ │
+/// ┌───┴───┐ ┌─────┴──────┐ │
+/// │ MatMul│<──│ Transpose │ │
+/// └───┬───┘ | (Optional) │ │
+/// │ └────────────┘ │
+/// ┌───┴───┐ ┌─────────────┐ │
+/// │ Add │<───│AttentionMask│ │
+/// └───┬───┘ | (Optional) │ │
+/// │ └─────────────┘ │
+/// ┌───┴───┐ │
+/// │Softmax│ │
+/// └───┬───┘ │
+/// │ │
+/// ┌───┴───┐ │
+/// │ MatMul│<─────────────────────┘
+/// └───┬───┘
+/// ┌───┴───┐
+/// │ Output│
+/// └───────┘
+///
+/// After:
+/// ┌───────┐ ┌───────┐ ┌───────┐ ┌─────────────┐
+/// │ Q │ │ K │ │ V │ │AttentionMask│
+/// └───┬───┘ └───┬───┘ └───┬───┘ └──────┬──────┘
+/// │ │ │ │
+/// │ │ │ │
+/// ┌───┴────────────┴────────────┴───────────────┴─┐
+/// │ ScaledDotProductAttention │
+/// └────────────────────┬──────────────────────────┘
+/// │
+/// │
+/// ┌────┴────┐
+/// │ Output │
+/// └─────────┘
+class TRANSFORMATIONS_API SDPAFusion : public ov::pass::MatcherPass {
+public:
+ OPENVINO_MATCHER_PASS_RTTI("SDPAFusion", "0");
+ SDPAFusion();
+};
+
+} // namespace pass
+} // namespace ov
diff --git a/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp
new file mode 100644
index 00000000000000..cae0363e785f4e
--- /dev/null
+++ b/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp
@@ -0,0 +1,58 @@
+// Copyright (C) 2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "openvino/pass/matcher_pass.hpp"
+#include "transformations_visibility.hpp"
+
+namespace ov {
+namespace pass {
+
+/// Merges explicit multiplication by scalar value for Q and K into scale attribute of SDPA op
+/// Before:
+/// ┌───────┐ ┌───────┐ ┌───────┐ ┌─────────────┐ ┌─────────────┐
+/// │ Q │ │ K │ │ V │ │AttentionMask│ │ Scale |
+/// └───┬───┘ └───┬───┘ └───┬───┘ │ (Optional) │ │ (Optional) │
+/// │ │ │ └──────┬──────┘ └───────┬─────┘
+/// │ │ │ │ |
+/// ┌───┴───┐ ┌───┴───┐ │ │ |
+/// │ Mul | │ Mul │ | │ |
+/// └───┬───┘ └───┬───┘ │ │ │
+/// │ │ │ │ │
+/// | │ │ │ │
+/// ┌───┴────────────┴────────────┴─────────────┴─┐ |
+/// │ ScaledDotProductAttention │──────────────────┘
+/// └────────────────────┬────────────────────────┘
+/// │
+/// │
+/// ┌────┴────┐
+/// │ Output │
+/// └─────────┘
+/// After:
+/// ┌───────┐ ┌───────┐ ┌───────┐ ┌─────────────┐ ┌───────┐
+/// │ Q │ │ K │ │ V │ │AttentionMask│ │ Scale |
+/// └───┬───┘ └───┬───┘ └───┬───┘ └──────┬──────┘ └───┬───┘
+/// │ │ │ │ |
+/// │ │ │ │ |
+/// | │ │ │ |
+/// ┌───┴────────────┴────────────┴─────────────┴─┐ |
+/// │ ScaledDotProductAttention │───────────┘
+/// └────────────────────┬────────────────────────┘
+/// │
+/// │
+/// ┌────┴────┐
+/// │ Output │
+/// └─────────┘
+/// Multiply ops for Q and K are eliminated in the following cases:
+/// 1. Q_scale and K_scale are constant
+/// 2. Q_scale * SDPA_Scale == 1 or K_scale * SDPA_Scale == 1
+class TRANSFORMATIONS_API SDPAScaleFusion : public ov::pass::MatcherPass {
+public:
+ OPENVINO_MATCHER_PASS_RTTI("SDPAScaleFusion", "0");
+ SDPAScaleFusion();
+};
+
+} // namespace pass
+} // namespace ov
diff --git a/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp b/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp
index 5278e17d07ff64..1146565efa1b48 100644
--- a/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/select_with_one_value_condition.hpp
@@ -26,6 +26,6 @@ class TRANSFORMATIONS_API SelectWithOneValueCondition;
class ov::pass::SelectWithOneValueCondition : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SelectWithOneValueCondition", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SelectWithOneValueCondition");
SelectWithOneValueCondition();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp
index ecba41990e28dd..a4f432b8bd584f 100644
--- a/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/sequence_fusion.hpp
@@ -30,6 +30,6 @@ class TRANSFORMATIONS_API SequenceFusion;
class ov::pass::SequenceFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SequenceFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SequenceFusion");
SequenceFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp
index 2304fe637b4551..b88cbdb64731a0 100644
--- a/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/shuffle_channels_fusion.hpp
@@ -34,6 +34,6 @@ class TRANSFORMATIONS_API ShuffleChannelsFusion;
class ov::pass::ShuffleChannelsFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ShuffleChannelsFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ShuffleChannelsFusion");
ShuffleChannelsFusion(const bool reshape_constants_check);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp b/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp
index 79e0ffd789bf7c..66198e60f3a564 100644
--- a/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/simplify_shape_of_sub_graph.hpp
@@ -31,7 +31,7 @@ class TRANSFORMATIONS_API AbsSinking;
*/
class ov::pass::GroupedGatherElimination : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GroupedGatherElimination", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GroupedGatherElimination");
GroupedGatherElimination();
};
@@ -55,7 +55,7 @@ class ov::pass::SimplifyShapeOfSubGraph : public ov::pass::ModelPass {
*/
class ov::pass::GatherNopElimination : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("GatherNopElimination", "0");
+ OPENVINO_MATCHER_PASS_RTTI("GatherNopElimination");
GatherNopElimination();
};
@@ -67,7 +67,7 @@ class ov::pass::GatherNopElimination : public ov::pass::MatcherPass {
*/
class ov::pass::SimplifyGatherShapeOf : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SimplifyGatherShapeOf", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SimplifyGatherShapeOf");
SimplifyGatherShapeOf();
};
@@ -78,7 +78,7 @@ class ov::pass::SimplifyGatherShapeOf : public ov::pass::MatcherPass {
*/
class ov::pass::SimplifySecondInputOfReshape : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SimplifySecondInputOfReshape", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SimplifySecondInputOfReshape");
SimplifySecondInputOfReshape();
};
@@ -90,6 +90,6 @@ class ov::pass::SimplifySecondInputOfReshape : public ov::pass::MatcherPass {
*/
class ov::pass::AbsSinking : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("AbsSinking", "0");
+ OPENVINO_MATCHER_PASS_RTTI("AbsSinking");
AbsSinking();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp b/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp
index a93fdb8f4f20fe..3e937ba217d66c 100644
--- a/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/skip_gather_before_transpose_and_reshape.hpp
@@ -26,6 +26,6 @@ class TRANSFORMATIONS_API SkipGatherBeforeTransposeAndReshape;
*/
class ov::pass::SkipGatherBeforeTransposeAndReshape : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SkipGatherBeforeTransposeAndReshape", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SkipGatherBeforeTransposeAndReshape");
SkipGatherBeforeTransposeAndReshape();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp
index f56a8bd1b574f7..07524e3799cf64 100644
--- a/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/softmax_fusion.hpp
@@ -103,6 +103,6 @@ class TRANSFORMATIONS_API SoftmaxFusion;
class ov::pass::SoftmaxFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SoftmaxFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SoftmaxFusion");
SoftmaxFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp
index 44d34dcdcc4c90..3dbadc5c2b6046 100644
--- a/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/softplus_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SoftPlusFusion;
*/
class ov::pass::SoftPlusFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SoftPlusFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SoftPlusFusion");
SoftPlusFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp
index 6a6d247e4ea351..cbc0194ad20c62 100644
--- a/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/softplus_to_mish_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SoftPlusToMishFusion;
*/
class ov::pass::SoftPlusToMishFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SoftPlusToMishFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SoftPlusToMishFusion");
SoftPlusToMishFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp
index 43cf4654628cf5..aa95f690512b42 100644
--- a/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/space_to_batch_fusion.hpp
@@ -32,6 +32,6 @@ class TRANSFORMATIONS_API SpaceToBatchFusion;
class ov::pass::SpaceToBatchFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SpaceToBatchFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SpaceToBatchFusion");
SpaceToBatchFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp
index e9ecba4fe6e961..72887dd32d9008 100644
--- a/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/split_concat_pair_to_interpolate_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SplitConcatPairToInterpolateFusion;
*/
class ov::pass::SplitConcatPairToInterpolateFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SplitConcatPairToInterpolateFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SplitConcatPairToInterpolateFusion");
SplitConcatPairToInterpolateFusion(bool use_shape_for_elimination = true);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp
index 24073c6a61e2dc..3cd3c9429be0f1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/split_squeeze_concat_fusion.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API SplitSqueezeConcatFusion;
*/
class ov::pass::SplitSqueezeConcatFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SplitSqueezeConcatFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SplitSqueezeConcatFusion");
SplitSqueezeConcatFusion(bool use_shapes);
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp b/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp
index 57f5036fe5faa7..acdd30580b1a23 100644
--- a/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/strides_optimization.hpp
@@ -28,7 +28,7 @@ class TRANSFORMATIONS_API StridesOptimization;
*/
class ov::pass::ConvStridesPropagation : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ConvStridesPropagation", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ConvStridesPropagation");
ConvStridesPropagation();
};
@@ -40,7 +40,7 @@ class ov::pass::ConvStridesPropagation : public ov::pass::MatcherPass {
*/
class ov::pass::SupportedNodesStridesPropagation : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SupportedNodesStridesPropagation", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SupportedNodesStridesPropagation");
SupportedNodesStridesPropagation();
};
@@ -51,7 +51,7 @@ class ov::pass::SupportedNodesStridesPropagation : public ov::pass::MatcherPass
*/
class ov::pass::UnsupportedNodesStridesPropagation : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("UnsupportedNodesStridesPropagation", "0");
+ OPENVINO_MATCHER_PASS_RTTI("UnsupportedNodesStridesPropagation");
UnsupportedNodesStridesPropagation();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp
index 69e4095b6becd7..1963f226b830be 100644
--- a/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/subtract_fusion.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API SubtractFusion;
*/
class ov::pass::SubtractFusion : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SubtractFusion", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SubtractFusion");
SubtractFusion();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp
index a630e1998e84ca..d9a1ae6e321f35 100644
--- a/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/swish_fusion.hpp
@@ -28,7 +28,7 @@ class TRANSFORMATIONS_API SwishFusionWithoutBeta;
*/
class ov::pass::SwishFusionWithSigmoid : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SwishFusionWithSigmoid", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithSigmoid");
SwishFusionWithSigmoid();
};
@@ -38,7 +38,7 @@ class ov::pass::SwishFusionWithSigmoid : public ov::pass::MatcherPass {
*/
class ov::pass::SwishFusionWithSigmoidWithBeta : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SwishFusionWithSigmoidWithBeta", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithSigmoidWithBeta");
SwishFusionWithSigmoidWithBeta();
};
@@ -48,7 +48,7 @@ class ov::pass::SwishFusionWithSigmoidWithBeta : public ov::pass::MatcherPass {
*/
class ov::pass::SwishFusionWithBeta : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SwishFusionWithBeta", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithBeta");
SwishFusionWithBeta();
};
@@ -58,7 +58,7 @@ class ov::pass::SwishFusionWithBeta : public ov::pass::MatcherPass {
*/
class ov::pass::SwishFusionWithoutBeta : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SwishFusionWithoutBeta", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SwishFusionWithoutBeta");
SwishFusionWithoutBeta();
};
@@ -68,7 +68,7 @@ class ov::pass::SwishFusionWithoutBeta : public ov::pass::MatcherPass {
*/
class ov::pass::SwishFusion : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("SwishFusion", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("SwishFusion");
SwishFusion() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp
index c1299872c4b3a5..b250ce1d3c3866 100644
--- a/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/transpose_reshape_elimination_for_matmul.hpp
@@ -26,6 +26,6 @@ class TRANSFORMATIONS_API TransposeReshapeEliminationForMatmul;
*/
class ov::pass::TransposeReshapeEliminationForMatmul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeReshapeEliminationForMatmul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeReshapeEliminationForMatmul");
TransposeReshapeEliminationForMatmul();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp
index 8189535fe260ae..d9f5c257f6dda1 100644
--- a/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/transpose_sinking.hpp
@@ -29,7 +29,7 @@ class TRANSFORMATIONS_API TransposeFuse;
*/
class ov::pass::TransposeReduction : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeReduction", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeReduction");
TransposeReduction();
};
@@ -40,7 +40,7 @@ class ov::pass::TransposeReduction : public ov::pass::MatcherPass {
*/
class ov::pass::TransposeFQReduction : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeFQReduction", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeFQReduction");
TransposeFQReduction();
};
@@ -50,7 +50,7 @@ class ov::pass::TransposeFQReduction : public ov::pass::MatcherPass {
*/
class ov::pass::TransposeConvert : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeConvert", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeConvert");
TransposeConvert();
};
@@ -60,7 +60,7 @@ class ov::pass::TransposeConvert : public ov::pass::MatcherPass {
*/
class ov::pass::TransposeEltwise : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeEltwise", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeEltwise");
TransposeEltwise();
};
@@ -71,7 +71,7 @@ class ov::pass::TransposeEltwise : public ov::pass::MatcherPass {
*/
class ov::pass::TransposeFuse : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeFuse", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeFuse");
TransposeFuse();
};
@@ -81,7 +81,7 @@ class ov::pass::TransposeFuse : public ov::pass::MatcherPass {
*/
class ov::pass::TransposeSinking : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("TransposeSinking", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("TransposeSinking");
TransposeSinking() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp b/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp
index aba6154bb0b58c..3a99d47858ec6f 100644
--- a/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/transpose_to_reshape.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TransposeToReshape;
*/
class ov::pass::TransposeToReshape : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeToReshape", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeToReshape");
TransposeToReshape();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp b/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp
index aa34c7859d068a..1b77d8f519d391 100644
--- a/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/weights_dequantize_to_fake_quantize.hpp
@@ -28,6 +28,6 @@ class TRANSFORMATIONS_API WeightsDequantizeToFakeQuantize;
*/
class ov::pass::WeightsDequantizeToFakeQuantize : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("WeightsDequantizeToFakeQuantize", "0");
+ OPENVINO_MATCHER_PASS_RTTI("WeightsDequantizeToFakeQuantize");
WeightsDequantizeToFakeQuantize();
};
diff --git a/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp b/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp
index 7b35498d5dde64..e0ef8b68bdaf04 100644
--- a/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp
+++ b/src/common/transformations/include/transformations/common_optimizations/wrap_interpolate_into_transposes.hpp
@@ -35,6 +35,6 @@ class TRANSFORMATIONS_API WrapInterpolateIntoTransposes;
*/
class ov::pass::WrapInterpolateIntoTransposes : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("WrapInterpolateIntoTransposes", "0");
+ OPENVINO_MATCHER_PASS_RTTI("WrapInterpolateIntoTransposes");
WrapInterpolateIntoTransposes();
};
diff --git a/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp b/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp
index 71c71b0614f29d..b9522d4a4273dd 100644
--- a/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp
+++ b/src/common/transformations/include/transformations/flush_fp32_subnormals_to_zero.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API FlushFP32SubnormalsToZero;
*/
class ov::pass::FlushFP32SubnormalsToZero : public MatcherPass {
public:
- OPENVINO_RTTI("FlushFP32SubnormalsToZero", "0");
+ OPENVINO_MATCHER_PASS_RTTI("FlushFP32SubnormalsToZero");
FlushFP32SubnormalsToZero();
};
diff --git a/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp b/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp
index 4f003dbc09e671..99852d0dc0df3f 100644
--- a/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp
+++ b/src/common/transformations/include/transformations/fp16_compression/mark_decompression_convert_constant_folding.hpp
@@ -26,7 +26,7 @@ class TRANSFORMATIONS_API MarkCompressedFloatConstants;
*/
class ov::pass::EnableDecompressionConvertConstantFolding : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("EnableDecompressionConvertConstantFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("EnableDecompressionConvertConstantFolding");
EnableDecompressionConvertConstantFolding();
};
@@ -36,7 +36,7 @@ class ov::pass::EnableDecompressionConvertConstantFolding : public ov::pass::Mat
*/
class ov::pass::DisableDecompressionConvertConstantFolding : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DisableDecompressionConvertConstantFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DisableDecompressionConvertConstantFolding");
DisableDecompressionConvertConstantFolding();
};
@@ -46,7 +46,7 @@ class ov::pass::DisableDecompressionConvertConstantFolding : public ov::pass::Ma
*/
class ov::pass::KeepConstAndDecompression : public MatcherPass {
public:
- OPENVINO_RTTI("KeepConstAndDecompression", "0");
+ OPENVINO_MATCHER_PASS_RTTI("KeepConstAndDecompression");
KeepConstAndDecompression();
};
@@ -56,7 +56,7 @@ class ov::pass::KeepConstAndDecompression : public MatcherPass {
*/
class ov::pass::KeepConstantsPrecisionAndAddConverts : public MatcherPass {
public:
- OPENVINO_RTTI("KeepConstantsPrecisionAndAddConverts", "0");
+ OPENVINO_MATCHER_PASS_RTTI("KeepConstantsPrecisionAndAddConverts");
KeepConstantsPrecisionAndAddConverts();
};
@@ -69,6 +69,6 @@ class ov::pass::KeepConstantsPrecisionAndAddConverts : public MatcherPass {
*/
class ov::pass::MarkCompressedFloatConstants : public MatcherPass {
public:
- OPENVINO_RTTI("KeepFWPrecisionFor16BitFloatConstants", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MarkCompressedFloatConstants");
MarkCompressedFloatConstants();
};
diff --git a/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp b/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp
index a61bd270c584ec..c1f948299c4321 100644
--- a/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp
+++ b/src/common/transformations/include/transformations/fp16_compression/mark_floatpoint_range.hpp
@@ -18,7 +18,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API MarkFloatingPointRange : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MarkFloatingPointRange", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MarkFloatingPointRange");
MarkFloatingPointRange();
};
@@ -27,4 +27,4 @@ OPENVINO_API bool is_range_path(const std::shared_ptr& node);
OPENVINO_API void erase_range_path(const std::shared_ptr& node);
} // namespace pass
-} // namespace ov
\ No newline at end of file
+} // namespace ov
diff --git a/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp b/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp
index 6cbd8d990ac73e..22f1eb753a28ad 100644
--- a/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp
+++ b/src/common/transformations/include/transformations/low_precision/mark_dequantization_subgraph.hpp
@@ -40,7 +40,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API MarkDequantization : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("MarkDequantization", "0");
+ OPENVINO_MATCHER_PASS_RTTI("MarkDequantization");
explicit MarkDequantization(const element::TypeVector& precisions,
bool fold_subtract_const = false,
bool fold_multiply_const = true);
@@ -70,7 +70,7 @@ class TRANSFORMATIONS_API MarkDequantization : public ov::pass::MatcherPass {
*/
class TRANSFORMATIONS_API KeepConstsPrecision : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("KeepConstsPrecision", "0");
+ OPENVINO_MATCHER_PASS_RTTI("KeepConstsPrecision");
explicit KeepConstsPrecision(const element::TypeVector& precisions,
bool fold_subtract_const = false,
bool fold_multiply_const = true);
diff --git a/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp
index f74f08a9b8c061..a49c1655537844 100644
--- a/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/bidirectional_sequences_decomposition.hpp
@@ -67,7 +67,7 @@ class ov::pass::BidirectionalRNNSequenceDecomposition : public ov::pass::Matcher
class ov::pass::BidirectionalSequenceDecomposition : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("BidirectionalSequenceDecomposition", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("BidirectionalSequenceDecomposition");
BidirectionalSequenceDecomposition() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp b/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp
index a5e130e2389af2..64821ce658eb66 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_bitwise_to_logical_bool.hpp
@@ -43,7 +43,7 @@ class ov::pass::ConvertBitwiseXorToLogicalXor : public ov::pass::MatcherPass {
*/
class ConvertBitwiseToLogical : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConvertBitwiseToLogical", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertBitwiseToLogical");
ConvertBitwiseToLogical() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
index 36d2b052243382..32a2f7a3ace512 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
@@ -61,7 +61,7 @@ class ov::pass::ConvertReduceSumToPooling : public ConvertReduceBase {
class ov::pass::ConvertReduceToPooling : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConvertReduceToPooling", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertReduceToPooling");
ConvertReduceToPooling() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp
index f020e768be2feb..9eeb3e5c0f8da6 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_reshape.hpp
@@ -84,7 +84,7 @@ class ov::pass::ConvertReduceLogicalOrToReshape : public CvtReduceBase {
class ov::pass::ConvertReduceToReshape : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConvertReduceToReshape", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertReduceToReshape");
// Handling reduce if it can be converted to reshape (check input/output tensor)
ConvertReduceToReshape() {
// Redundant reduce based on its mode
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp b/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp
index 46a7e8ff0317e9..e108f4a50ce1f2 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_sequences_to_tensor_iterator.hpp
@@ -59,6 +59,6 @@ class ov::pass::ConvertLSTMSequenceToTensorIterator : public ov::pass::MatcherPa
class ov::pass::ConvertSequenceToTensorIterator : public GraphRewrite {
public:
- OPENVINO_RTTI("ConvertSequenceToTensorIterator", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertSequenceToTensorIterator");
ConvertSequenceToTensorIterator();
};
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp b/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp
index fb53cc81743ec4..f4bd61573e3ac2 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_ti_to_sequences.hpp
@@ -66,7 +66,7 @@ class ov::pass::ConvertTensorIteratorToGRUSequence : public ov::pass::MatcherPas
class ov::pass::ConvertTensorIteratorToSequence : public GraphRewrite {
public:
- OPENVINO_RTTI("ConvertTensorIteratorToSequence", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertTensorIteratorToSequence");
ConvertTensorIteratorToSequence();
};
@@ -88,7 +88,7 @@ class ov::pass::ConvertLoopWithScatterUpdateToLSTMSequence : public ov::pass::Ma
*/
class ov::pass::ConvertLoopToLSTMSequence : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("ConvertLoopToLSTMSequence", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("ConvertLoopToLSTMSequence");
ConvertLoopToLSTMSequence() {
add_matcher();
add_matcher();
diff --git a/src/common/transformations/include/transformations/op_conversions/fake_convert_decomposition.hpp b/src/common/transformations/include/transformations/op_conversions/fake_convert_decomposition.hpp
new file mode 100644
index 00000000000000..e149152b2bcf6d
--- /dev/null
+++ b/src/common/transformations/include/transformations/op_conversions/fake_convert_decomposition.hpp
@@ -0,0 +1,32 @@
+// Copyright (C) 2024 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "openvino/pass/matcher_pass.hpp"
+#include "transformations_visibility.hpp"
+
+namespace ov {
+namespace pass {
+
+class TRANSFORMATIONS_API FakeConvertDecomposition;
+
+} // namespace pass
+} // namespace ov
+
+/**
+ * @ingroup ov_transformation_common_api
+ * @brief FakeConvertDecomposition transformation decomposes FakeConvert layer.
+ * f8: f8e4m3, f8e5m2
+ * downconvert: f32->f8, f16->f8, bf16->f8
+ * upconvert: f8->f32, f8->f16, f8->bf16
+ * output = (upconvert(downconvert(input * scale - shift)) + shift) / scale
+ *
+ */
+
+class ov::pass::FakeConvertDecomposition : public ov::pass::MatcherPass {
+public:
+ OPENVINO_MATCHER_PASS_RTTI("FakeConvertDecomposition");
+ FakeConvertDecomposition();
+};
diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp
index 5ee79ec787a9bc..825ce8acbd7998 100644
--- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp
+++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/position_ids_replacer.hpp
@@ -15,12 +15,32 @@ namespace ov {
namespace pass {
class TRANSFORMATIONS_API PositionIDsReplacer;
+class TRANSFORMATIONS_API PositionIDsReplacerQwen;
} // namespace pass
} // namespace ov
class ov::pass::PositionIDsReplacer : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PositionIDsReplacer", "0");
+ OPENVINO_MATCHER_PASS_RTTI("PositionIDsReplacer");
explicit PositionIDsReplacer(const Output& position_ids);
-};
\ No newline at end of file
+};
+
+/**
+ * @brief Qwen model expects data processing in order, the "position ids" input is detached and
+ * is not explicitly used in the model. The model uses implicitly defined "position ids" based
+ * on the past KV cache size.
+ *
+ * To use this model in Continuous batching mode, we need to apply position_ids and
+ * use the corresponding rotary_emb_cos/rotary_emb_sin.
+ * For this, we replace
+ * rotary_emb_cos/rotary_emb_sin -> Slice -> Slice
+ * With
+ * rotary_emb_cos/rotary_emb_sin -> Gather(by position_ids)
+ * Which enables applying RoPE for each token independently of their order in the input tensor.
+ */
+class ov::pass::PositionIDsReplacerQwen : public ov::pass::MatcherPass {
+public:
+ OPENVINO_MATCHER_PASS_RTTI("PositionIDsReplacerQwen");
+ explicit PositionIDsReplacerQwen(const Output& position_ids);
+};
diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp
index fd4e22c69262ae..d1cc5d5126cd67 100644
--- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp
+++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/prev_sequence_length_pattern.hpp
@@ -4,7 +4,6 @@
#pragma once
-#include "openvino/cc/pass/itt.hpp"
#include "openvino/op/shape_of.hpp"
#include "openvino/op/subtract.hpp"
#include "openvino/pass/matcher_pass.hpp"
@@ -22,6 +21,8 @@ class TRANSFORMATIONS_API PrevSequenceLengthPattern;
class ov::pass::PrevSequenceLengthPattern : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("PrevSequenceLengthPattern", "0");
- explicit PrevSequenceLengthPattern(std::shared_ptr prev_max_seq_len, std::shared_ptr batch_dim);
-};
\ No newline at end of file
+ OPENVINO_MATCHER_PASS_RTTI("PrevSequenceLengthPattern", "0");
+ explicit PrevSequenceLengthPattern(const std::shared_ptr& unsqueezed_input_ids,
+ const std::shared_ptr& max_context_len,
+ const std::shared_ptr& position_ids);
+};
diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp
index feab06ccc0cd5d..79b4f444cfa791 100644
--- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp
+++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/state_management_pattern.hpp
@@ -17,7 +17,7 @@ class TRANSFORMATIONS_API StateManagementPattern;
class ov::pass::StateManagementPattern : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("StateManagementPattern", "0");
+ OPENVINO_MATCHER_PASS_RTTI("StateManagementPattern");
StateManagementPattern(ParameterVector& kv_parameters,
ParameterVector& model_remaining_params,
const std::shared_ptr& sliding_window,
@@ -28,4 +28,4 @@ class ov::pass::StateManagementPattern : public ov::pass::MatcherPass {
ResultVector& score_results,
bool use_block_indices,
bool use_score_outputs);
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp b/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp
index c6b319a389ecaa..2456161ea80a78 100644
--- a/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp
+++ b/src/common/transformations/include/transformations/sdpa_to_paged_attention/total_sequence_length_pattern.hpp
@@ -15,12 +15,32 @@ namespace ov {
namespace pass {
class TRANSFORMATIONS_API TotalSequenceLengthPattern;
+class TRANSFORMATIONS_API TotalSequenceLengthPatternQwen;
} // namespace pass
} // namespace ov
class ov::pass::TotalSequenceLengthPattern : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TotalSequenceLengthPattern", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TotalSequenceLengthPattern");
explicit TotalSequenceLengthPattern(const std::shared_ptr& max_context_len);
};
+
+/**
+ * @brief Qwen model has a specific pattern for TotalSequenceLen place detection.
+ *
+ * common pattern: Add (PrevSeqLen, CurrentSeqLen)
+ *
+ * The CurrentSeqLen is presented in this form:
+ * CurrentSeqLen: Parameter(name: input_ids) -> ShapeOf -> Gather
+ *
+ * Before applying this transformation, we already detected the PrevSeqLen place in the PrevSequenceLengthPattern
+ * and replaced it with the next subgraph:
+ * PrevSeqLen: Subtract (in: Parameter(name: max_context_len), in: CurrentSeqLen)
+ *
+ **/
+class ov::pass::TotalSequenceLengthPatternQwen : public ov::pass::MatcherPass {
+public:
+ OPENVINO_MATCHER_PASS_RTTI("TotalSequenceLengthPattern", "0");
+ explicit TotalSequenceLengthPatternQwen(const std::shared_ptr& max_context_len);
+};
diff --git a/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp b/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp
index 04f7de9a336414..12cfe17a115592 100644
--- a/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/broadcast_const_range_replacement.hpp
@@ -23,6 +23,6 @@ class TRANSFORMATIONS_API BroadcastConstRangeReplacement;
class ov::pass::BroadcastConstRangeReplacement : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("BroadcastConstRangeReplacement", "0");
+ OPENVINO_MATCHER_PASS_RTTI("BroadcastConstRangeReplacement");
BroadcastConstRangeReplacement();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp b/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp
index 4e21e767d1bce6..cec7ce6bcd074e 100644
--- a/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/matmul_sr.hpp
@@ -30,16 +30,16 @@ class TRANSFORMATIONS_API TransposeMatMul;
class ov::pass::ReshapeAMatMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeAMatMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeAMatMul");
ReshapeAMatMul();
};
class ov::pass::ReshapeBMatMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeBMatMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeBMatMul");
ReshapeBMatMul();
};
class ov::pass::TransposeMatMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TransposeMatMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TransposeMatMul");
TransposeMatMul();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp b/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp
index d2eaf125e0dd5c..c8d756252509e1 100644
--- a/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/proposal_scales_stridedslice.hpp
@@ -36,12 +36,12 @@ class TRANSFORMATIONS_API Proposal4Scales;
class ov::pass::Proposal1Scales : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("Proposal1Scales", "0");
+ OPENVINO_MATCHER_PASS_RTTI("Proposal1Scales");
Proposal1Scales();
};
class ov::pass::Proposal4Scales : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("Proposal4Scales", "0");
+ OPENVINO_MATCHER_PASS_RTTI("Proposal4Scales");
Proposal4Scales();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp b/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp
index aeaf46ccde1c2b..dd64980a0d155a 100644
--- a/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/reshape_sinking.hpp
@@ -28,6 +28,6 @@ class TRANSFORMATIONS_API ReshapeSinkingMatMul;
class ov::pass::ReshapeSinkingMatMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeSinkingMatMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeSinkingMatMul");
ReshapeSinkingMatMul();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp b/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp
index a973038bb30900..cab320f543f382 100644
--- a/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/reshape_to_1D.hpp
@@ -25,6 +25,6 @@ class TRANSFORMATIONS_API ReshapeTo1D;
class ov::pass::ReshapeTo1D : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeTo1D", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeTo1D");
ReshapeTo1D();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp b/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp
index d2bc029cce4682..fdb620bf588e72 100644
--- a/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/shape_of_const_folding.hpp
@@ -16,7 +16,7 @@ namespace pass {
*/
class TRANSFORMATIONS_API ShapeOfConstFolding : public MatcherPass {
public:
- OPENVINO_RTTI("ShapeOfConstFolding", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ShapeOfConstFolding");
ShapeOfConstFolding();
};
diff --git a/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp b/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp
index f34b6d25a27e49..cafac7e77857fb 100644
--- a/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp
+++ b/src/common/transformations/include/transformations/smart_reshape/strided_slice_squeeze.hpp
@@ -27,7 +27,7 @@ class TRANSFORMATIONS_API SqueezeStridedSlice;
class ov::pass::StridedSliceSqueeze : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("StridedSliceSqueeze", "0");
+ OPENVINO_MATCHER_PASS_RTTI("StridedSliceSqueeze");
StridedSliceSqueeze();
};
@@ -39,6 +39,6 @@ class ov::pass::StridedSliceSqueeze : public ov::pass::MatcherPass {
class ov::pass::SqueezeStridedSlice : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("SqueezeStridedSlice", "0");
+ OPENVINO_MATCHER_PASS_RTTI("SqueezeStridedSlice");
SqueezeStridedSlice();
};
diff --git a/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp b/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp
index c7cb03afd5ade4..20a43475233050 100644
--- a/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp
+++ b/src/common/transformations/include/transformations/symbolic_transformations/chained_maximum.hpp
@@ -21,6 +21,6 @@ class TRANSFORMATIONS_API ChainedMaximumOptimization;
*/
class ov::pass::ChainedMaximumOptimization : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ChainedMaximumOptimization", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ChainedMaximumOptimization");
ChainedMaximumOptimization();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp b/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp
index fa1c844faa7129..b1586741a05833 100644
--- a/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp
+++ b/src/common/transformations/include/transformations/symbolic_transformations/dereshape_matmul.hpp
@@ -62,7 +62,7 @@ class TRANSFORMATIONS_API DeReshapeFullyConnected;
*/
class ov::pass::DeReshapeMatMul : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DeReshapeMatMul", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DeReshapeMatMul");
DeReshapeMatMul();
};
@@ -87,6 +87,6 @@ class ov::pass::DeReshapeMatMul : public ov::pass::MatcherPass {
*/
class ov::pass::DeReshapeFullyConnected : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("DeReshapeFullyConnected", "0");
+ OPENVINO_MATCHER_PASS_RTTI("DeReshapeFullyConnected");
DeReshapeFullyConnected();
};
diff --git a/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp b/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp
index 5a12b5735ce428..524fef52846e5c 100644
--- a/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp
+++ b/src/common/transformations/include/transformations/symbolic_transformations/nop_broadcast.hpp
@@ -20,6 +20,6 @@ class TRANSFORMATIONS_API NopBroadcast;
*/
class ov::pass::NopBroadcast : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("NopBroadcast", "0");
+ OPENVINO_MATCHER_PASS_RTTI("NopBroadcast");
NopBroadcast();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp b/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp
index 5d84d83bad2de5..f23cfd580cbccf 100644
--- a/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp
+++ b/src/common/transformations/include/transformations/symbolic_transformations/reshape_optimizations.hpp
@@ -52,6 +52,6 @@ class TRANSFORMATIONS_API ReshapeOptimizations;
*/
class ov::pass::ReshapeOptimizations : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ReshapeOptimizations", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ReshapeOptimizations");
ReshapeOptimizations();
};
diff --git a/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp b/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp
index c6a99c90122544..6197ad4c246f6a 100644
--- a/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp
+++ b/src/common/transformations/include/transformations/symbolic_transformations/symbolic_optimizations.hpp
@@ -58,6 +58,6 @@ class ov::pass::SymbolicPropagation : public ov::pass::ModelPass {
*/
class ov::pass::LabelResolvingThroughSelect : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("LabelResolvingThroughSelect", "0");
+ OPENVINO_MATCHER_PASS_RTTI("LabelResolvingThroughSelect");
LabelResolvingThroughSelect();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp
index 013799e854df8f..d16bf401576b96 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_base.hpp
@@ -27,7 +27,7 @@ class TRANSFORMATIONS_API TSForwardBase;
*/
class ov::pass::transpose_sinking::TSForwardBase : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSForwardBase", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSForwardBase");
TSForwardBase() = default;
template
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp
index 9534380d51253e..b8eca55dcb9685 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSBinaryForward : public ov::pass::transpose_
*/
class ov::pass::transpose_sinking::TSBinaryBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSBinaryBackward");
TSBinaryBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp
index cc0ccc2c194dbf..5b6477da94a80d 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSConcatForward : public ov::pass::transpose_
*/
class ov::pass::transpose_sinking::TSConcatBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSConcatBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSConcatBackward");
TSConcatBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp
index 185bea0105ec4d..741c56d5be0de7 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_cumsum.hpp
@@ -35,6 +35,6 @@ class ov::pass::transpose_sinking::TSCumSumForward : public ov::pass::transpose_
*/
class ov::pass::transpose_sinking::TSCumSumBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSCumSumBackward");
TSCumSumBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp
index 9775e57d61146b..e1a4f34a109eec 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp
@@ -39,6 +39,6 @@ class ov::pass::transpose_sinking::TSDataMovementForward : public ov::pass::tran
*/
class ov::pass::transpose_sinking::TSDataMovementBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSDataMovementBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSDataMovementBackward");
TSDataMovementBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp
index 974e7accc4d808..6f5a654e70e81c 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TSFuse;
*/
class ov::pass::transpose_sinking::TSFuse : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TSFuse", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TSFuse");
TSFuse();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp
index 5bc7cea340cb72..891b8bd85c2ed4 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_gather.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSGatherForward : public ov::pass::transpose_
*/
class ov::pass::transpose_sinking::TSGatherBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSGatherBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSGatherBackward");
TSGatherBackward();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp
index 09d4d5819322a9..b39a25b9db0872 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp
@@ -29,7 +29,7 @@ using TransposeSinkingGeneral = ov::pass::transpose_sinking::TSGeneral;
*/
class ov::pass::transpose_sinking::TSGeneralForward : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("TSGeneralForward", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("TSGeneralForward");
TSGeneralForward();
};
@@ -40,7 +40,7 @@ class ov::pass::transpose_sinking::TSGeneralForward : public ov::pass::GraphRewr
*/
class ov::pass::transpose_sinking::TSGeneralBackward : public ov::pass::GraphRewrite {
public:
- OPENVINO_RTTI("TSGeneralBackward", "0");
+ OPENVINO_GRAPH_REWRITE_RTTI("TSGeneralBackward");
TSGeneralBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp
index dfdd062e1f7ce3..90ae417aca9fc6 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSInterpolateForward : public ov::pass::trans
*/
class ov::pass::transpose_sinking::TSInterpolateBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSInterpolateBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSInterpolateBackward");
TSInterpolateBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp
index a983519a3012d6..d2992bc8a4abd8 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSReductionForward : public ov::pass::transpo
*/
class ov::pass::transpose_sinking::TSReductionBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSReductionBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSReductionBackward");
TSReductionBackward();
-};
\ No newline at end of file
+};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp
index 240c6e8342c069..3aa2a770390e35 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_reset_no_sinking_attribute.hpp
@@ -24,6 +24,6 @@ class TRANSFORMATIONS_API TSResetNoSinkingAttribute;
*/
class ov::pass::transpose_sinking::TSResetNoSinkingAttribute : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSResetNoSinkingAttribute", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSResetNoSinkingAttribute");
TSResetNoSinkingAttribute();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp
index 5e10a7f0e8a930..12ccc614861140 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_slice.hpp
@@ -27,6 +27,6 @@ class ov::pass::transpose_sinking::TSSliceForward : public ov::pass::transpose_s
class ov::pass::transpose_sinking::TSSliceBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSSliceBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSliceBackward");
TSSliceBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp
index cb24aa5273906f..b21bada67ad368 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp
@@ -38,6 +38,6 @@ class ov::pass::transpose_sinking::TSSplitForward : public ov::pass::transpose_s
*/
class ov::pass::transpose_sinking::TSSplitBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSSplitBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSplitBackward");
TSSplitBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp
index 752e040ab52cab..0d86d0a4c29242 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_squeeze.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSSqueezeForward : public ov::pass::transpose
*/
class ov::pass::transpose_sinking::TSSqueezeBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSSqueezeBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSSqueezeBackward");
TSSqueezeBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp
index 9bb15894d70a81..ffd14ce9a38d84 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_tile.hpp
@@ -36,6 +36,6 @@ class ov::pass::transpose_sinking::TSTileForward : public ov::pass::transpose_si
*/
class ov::pass::transpose_sinking::TSTileBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSBinaryBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSTileBackward");
TSTileBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp
index c8148e912b30c0..1d745ada561224 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSUnaryForward : public ov::pass::transpose_s
*/
class ov::pass::transpose_sinking::TSUnaryBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("TSUnaryBackwardMultiConsumers", "0");
+ OPENVINO_MATCHER_PASS_RTTI("TSUnaryBackward");
TSUnaryBackward();
};
diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp
index 1ee195624cb801..60e5f8f7893961 100644
--- a/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp
+++ b/src/common/transformations/include/transformations/transpose_sinking/ts_unsqueeze.hpp
@@ -37,6 +37,6 @@ class ov::pass::transpose_sinking::TSUnsqueezeForward : public ov::pass::transpo
*/
class ov::pass::transpose_sinking::TSUnsqueezeBackward : public ov::pass::MatcherPass {
public:
- OPENVINO_RTTI("ov::pass::TSUnsqueezeBackward", "0");
+ OPENVINO_MATCHER_PASS_RTTI("ov::pass::TSUnsqueezeBackward");
TSUnsqueezeBackward();
};
diff --git a/src/common/transformations/include/transformations/utils/gen_pattern.hpp b/src/common/transformations/include/transformations/utils/gen_pattern.hpp
index 21309e339c959c..976561b4844a17 100644
--- a/src/common/transformations/include/transformations/utils/gen_pattern.hpp
+++ b/src/common/transformations/include/transformations/utils/gen_pattern.hpp
@@ -539,6 +539,11 @@ class AttrSetter : public ov::AttributeVisitor {
a->set(m_attr_map[name].as_vector());
} else if (auto a = ov::as_type>(&adapter)) {
a->set(m_attr_map[name].as_T_vector());
+ } else if (auto a = dynamic_cast>*>(&adapter)) {
+ ov::op::util::VariableInfo var_info;
+ var_info.variable_id = m_attr_map[name].as_string();
+ auto variable = std::make_shared(var_info);
+ a->set(variable);
} else {
OPENVINO_THROW("unsupported AttributeAdapter for attribute : ", name);
}
@@ -896,6 +901,7 @@ struct PatternNode {
// scalar constant (treated as wildcard for single-element-constant with any rank)
PatternNode(int v) : node(std::make_shared(element::from(), Shape({}), v)) {}
PatternNode(float v) : node(std::make_shared(element::from(), Shape({}), v)) {}
+ PatternNode(long long v) : node(std::make_shared(element::from(), Shape({}), v)) {}
PatternNode(std::initializer_list v, values_info vi = nullptr) {
node = ConstVector(std::vector(v), vi);
diff --git a/src/common/transformations/include/transformations/utils/print_model.hpp b/src/common/transformations/include/transformations/utils/print_model.hpp
index 0829cd7e320e88..53fa7de51c5eca 100644
--- a/src/common/transformations/include/transformations/utils/print_model.hpp
+++ b/src/common/transformations/include/transformations/utils/print_model.hpp
@@ -19,6 +19,7 @@
#include "openvino/core/model.hpp"
#include "openvino/core/node.hpp"
#include "openvino/op/constant.hpp"
+#include "openvino/op/util/multi_subgraph_base.hpp"
#include "openvino/pass/pass.hpp"
#include "transformations/utils/utils.hpp"
diff --git a/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp b/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp
index 7c22dbdfeac53d..5abe0b5b8c87e3 100644
--- a/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp
+++ b/src/common/transformations/src/transformations/common_optimizations/convert_nms_gather_path_to_unsigned.cpp
@@ -31,7 +31,7 @@ namespace ov {
namespace pass {
class InitNMSPath : public pass::MatcherPass {
public:
- OPENVINO_RTTI("InitNMSPath", "0");
+ OPENVINO_MATCHER_PASS_RTTI("InitNMSPath");
InitNMSPath() {
MATCHER_SCOPE(InitNMSPath);
auto nms_pattern = pattern::wrap_type();
diff --git a/src/common/transformations/src/transformations/common_optimizations/moc_transformations.cpp b/src/common/transformations/src/transformations/common_optimizations/moc_transformations.cpp
index 185ae84ec83642..23fbf882024bdc 100644
--- a/src/common/transformations/src/transformations/common_optimizations/moc_transformations.cpp
+++ b/src/common/transformations/src/transformations/common_optimizations/moc_transformations.cpp
@@ -65,6 +65,7 @@
#include "transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp"
#include "transformations/common_optimizations/reshape_sequence_fusion.hpp"
#include "transformations/common_optimizations/ric_fusion.hpp"
+#include "transformations/common_optimizations/sdpa_fusion.hpp"
#include "transformations/common_optimizations/select_with_one_value_condition.hpp"
#include "transformations/common_optimizations/sequence_fusion.hpp"
#include "transformations/common_optimizations/shared_ops_optimization.hpp"
@@ -229,6 +230,7 @@ bool ov::pass::MOCTransformations::run_on_model(const std::shared_ptr
ADD_MATCHER(common_fusions, ConvertTensorIteratorToSequence)
ADD_MATCHER(common_fusions, SplitConcatPairToInterpolateFusion, m_use_shapes)
ADD_MATCHER(common_fusions, ConvolutionToGroupConvolutionFusion)
+ ADD_MATCHER(common_fusions, SDPAFusion)
if (m_use_shapes) {
ADD_MATCHER(common_fusions, NearestNeighborUpsamplingFusion)
}
diff --git a/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp b/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp
index 4e9715883ec9f8..1e6d7caec39ac0 100644
--- a/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp
+++ b/src/common/transformations/src/transformations/common_optimizations/ric_fusion.cpp
@@ -224,6 +224,7 @@ void add_node_with_inputs_to_vector(const std::shared_ptr& node, NodeV
} // namespace
class SplitConcat : public ov::pass::MatcherPass {
public:
+ OPENVINO_MATCHER_PASS_RTTI("pass::init::SplitConcat");
SplitConcat(NodeVector& nodes_to_fuse) {
MATCHER_SCOPE(SplitConcat);
auto split_p = pattern::wrap_type();
@@ -280,6 +281,7 @@ class SplitConcat : public ov::pass::MatcherPass {
class Gather : public ov::pass::MatcherPass {
public:
+ OPENVINO_MATCHER_PASS_RTTI("pass::init::Gather");
Gather(NodeVector& nodes_to_fuse) {
MATCHER_SCOPE(Gather);
auto input_p = pattern::any_input(pattern::has_static_rank());
@@ -341,6 +343,7 @@ namespace prop {
class Binary : public ov::pass::MatcherPass {
public:
+ OPENVINO_MATCHER_PASS_RTTI("pass::prop::Binary");
Binary() {
MATCHER_SCOPE(Binary);
auto pattern_root = pattern::wrap_type();
@@ -426,6 +429,7 @@ class Binary : public ov::pass::MatcherPass {
class Convolution : public ov::pass::MatcherPass {
public:
+ OPENVINO_MATCHER_PASS_RTTI("pass::prop::Convolution");
Convolution() {
MATCHER_SCOPE(Convolution);
auto input_p = pattern::any_input(ric_attr::has