Skip to content

Commit

Permalink
[Docs] fix failure of python snippet (#20516)
Browse files Browse the repository at this point in the history
* [Docs] fix failure of python snippet

* trigger python snippets

* fix ga

* Update .github/workflows/linux.yml

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>

* Update .github/workflows/linux.yml

Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>

* return back fix

---------

Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Mikhail Ryzhov <mikhail.ryzhov@intel.com>
  • Loading branch information
3 people authored Oct 18, 2023
1 parent f2549f2 commit 4914541
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ on:
- cron: '0 0 * * 3,6'
workflow_dispatch:
pull_request:
paths-ignore:
- '**/docs/**'
- 'docs/**'
- '**/**.md'
- '**.md'
paths:
- '**'
- '!**/docs/**'
- '!docs/**'
- 'docs/snippets/**'
- '!**/**.md'
- '!**.md'
push:
paths-ignore:
- '**/docs/**'
- 'docs/**'
- '**/**.md'
- '**.md'
paths:
- '**'
- '!docs/**'
- '!**/docs/**'
- 'docs/snippets/**'
- '!**/**.md'
- '!**.md'
branches:
- master
- 'releases/**'
Expand Down
3 changes: 1 addition & 2 deletions docs/snippets/ov_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import openvino.properties.device as device
import openvino.properties.hint as hints
import openvino.properties.streams as streams
import openvino.properties.enable_profiling as enable_profiling
#! [py_ov_property_import_header]
import openvino.properties.log as log

Expand Down Expand Up @@ -167,7 +166,7 @@ def part5():
cpu_config = {
hints.performance_mode: hints.PerformanceMode.LATENCY,
streams.num: 8,
enable_profiling: True
properties.enable_profiling: True
}
compiled_model = core.compile_model(
model=model,
Expand Down

0 comments on commit 4914541

Please sign in to comment.