Skip to content

Commit

Permalink
[Py OV] Update samples with import from openvino directly (openvinoto…
Browse files Browse the repository at this point in the history
…olkit#28341)

### Details:
 - Replace `openvino.runtime` with `openvino` in samples
 

### Tickets:
 - [CVS-159526](https://jira.devtools.intel.com/browse/CVS-159526)

Signed-off-by: Alicja Miloszewska <alicja.miloszewska@intel.com>
  • Loading branch information
almilosz authored Jan 9, 2025
1 parent 14e789e commit 54a4f1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/python/benchmark/bert_benchmark/bert_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import openvino as ov
import datasets
from openvino.runtime import get_version
from openvino import get_version
from transformers import AutoTokenizer
from transformers.onnx import export
from transformers.onnx.features import FeaturesManager
Expand Down
4 changes: 2 additions & 2 deletions samples/python/benchmark/sync_benchmark/sync_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import numpy as np
import openvino as ov
from openvino.runtime import get_version
from openvino.runtime.utils.types import get_dtype
from openvino import get_version
from openvino.utils.types import get_dtype


def fill_tensor_random(tensor):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import numpy as np
import openvino as ov
from openvino.runtime import get_version
from openvino.runtime.utils.types import get_dtype
from openvino import get_version
from openvino.utils.types import get_dtype


def fill_tensor_random(tensor):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import numpy as np
import openvino as ov
from openvino.runtime import op, opset1, opset8
from openvino import op, opset1, opset8

from data import digits

Expand Down

0 comments on commit 54a4f1c

Please sign in to comment.