Skip to content

Commit

Permalink
add property execution devices
Browse files Browse the repository at this point in the history
  • Loading branch information
akuporos committed Sep 12, 2023
1 parent 3165963 commit 22e02e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/snippets/ov_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,14 @@ def part6():
#! [part6]


# TODO: missing EXECUTION_DEVICES property in Python API
def part7():
#! [part7]
core = ov.Core()

# compile a model on AUTO and set log level to debug
compiled_model = core.compile_model(model=model, device_name="AUTO")
# query the runtime target devices on which the inferences are being executed
execution_devices = compiled_model.get_property("EXECUTION_DEVICES")
execution_devices = compiled_model.get_property(ov.properties.execution_devices())
#! [part7]


Expand Down

0 comments on commit 22e02e6

Please sign in to comment.