File tree 6 files changed +6
-9
lines changed
6 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The following Python API is used in the application:
12
12
13
13
| Feature | API | Description |
14
14
| -------------------------| ------------------------------------------------| ----------------------------------------------|
15
- | OpenVINO Runtime Version | [ openvino.runtime.get_version ] | Get Openvino API version. |
15
+ | OpenVINO API Version | [ openvino.\_\_ version __ ] | Get Openvino API version. |
16
16
| Basic Infer Flow | [ openvino.runtime.Core] , | Common API to do inference: compile a model. |
17
17
| | [ openvino.runtime.Core.compile_model] | |
18
18
| Asynchronous Infer | [ openvino.runtime.AsyncInferQueue] , | Do asynchronous inference. |
Original file line number Diff line number Diff line change 11
11
12
12
import openvino as ov
13
13
import datasets
14
- from openvino import get_version
15
14
from transformers import AutoTokenizer
16
15
from transformers .onnx import export
17
16
from transformers .onnx .features import FeaturesManager
20
19
def main ():
21
20
log .basicConfig (format = '[ %(levelname)s ] %(message)s' , level = log .INFO , stream = sys .stdout )
22
21
log .info ('OpenVINO:' )
23
- log .info (f"{ 'Build ' :.<39} { get_version () } " )
22
+ log .info (f"{ 'Build ' :.<39} { ov . __version__ } " )
24
23
model_name = 'bert-base-uncased'
25
24
# Download the model
26
25
transformers_model = FeaturesManager .get_model_from_feature ('default' , model_name )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ The following Python API is used in the application:
19
19
20
20
| Feature | API | Description |
21
21
| --------------------------| ------------------------------------------------| ----------------------------------------------|
22
- | OpenVINO Runtime Version | [ openvino.runtime.get_version ] | Get Openvino API version. |
22
+ | OpenVINO API Version | [ openvino.\_\_ version __ ] | Get Openvino API version. |
23
23
| Basic Infer Flow | [ openvino.runtime.Core] , | Common API to do inference: compile a model, |
24
24
| | [ openvino.runtime.Core.compile_model] , | configure input tensors. |
25
25
| | [ openvino.runtime.InferRequest.get_tensor] | |
Original file line number Diff line number Diff line change 10
10
11
11
import numpy as np
12
12
import openvino as ov
13
- from openvino import get_version
14
13
from openvino .utils .types import get_dtype
15
14
16
15
@@ -29,7 +28,7 @@ def fill_tensor_random(tensor):
29
28
def main ():
30
29
log .basicConfig (format = '[ %(levelname)s ] %(message)s' , level = log .INFO , stream = sys .stdout )
31
30
log .info ('OpenVINO:' )
32
- log .info (f"{ 'Build ' :.<39} { get_version () } " )
31
+ log .info (f"{ 'Build ' :.<39} { ov . __version__ } " )
33
32
device_name = 'CPU'
34
33
if len (sys .argv ) == 3 :
35
34
device_name = sys .argv [2 ]
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The following Python API is used in the application:
21
21
22
22
| Feature | API | Description |
23
23
| --------------------------| ------------------------------------------------| ----------------------------------------------|
24
- | OpenVINO Runtime Version | [ openvino.runtime.get_version ] | Get Openvino API version. |
24
+ | OpenVINO API Version | [ openvino.\_\_ version __ ] | Get Openvino API version. |
25
25
| Basic Infer Flow | [ openvino.runtime.Core] , | Common API to do inference: compile a model, |
26
26
| | [ openvino.runtime.Core.compile_model] | configure input tensors. |
27
27
| | [ openvino.runtime.InferRequest.get_tensor] | |
Original file line number Diff line number Diff line change 10
10
11
11
import numpy as np
12
12
import openvino as ov
13
- from openvino import get_version
14
13
from openvino .utils .types import get_dtype
15
14
16
15
@@ -29,7 +28,7 @@ def fill_tensor_random(tensor):
29
28
def main ():
30
29
log .basicConfig (format = '[ %(levelname)s ] %(message)s' , level = log .INFO , stream = sys .stdout )
31
30
log .info ('OpenVINO:' )
32
- log .info (f"{ 'Build ' :.<39} { get_version () } " )
31
+ log .info (f"{ 'Build ' :.<39} { ov . __version__ } " )
33
32
device_name = 'CPU'
34
33
if len (sys .argv ) == 3 :
35
34
device_name = sys .argv [2 ]
You can’t perform that action at this time.
0 commit comments