Skip to content

Commit 9825202

Browse files
add condition (#3267)
1 parent 1840c3c commit 9825202

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demos/handwritten_text_recognition_demo/python/handwritten_text_recognition_demo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def main():
7777
log.info('OpenVINO Inference Engine')
7878
log.info('\tbuild: {}'.format(get_version()))
7979
core = Core()
80-
core.set_property("GPU", {"GPU_ENABLE_LOOP_UNROLLING": "NO", "CACHE_DIR": "./"})
80+
81+
if 'GPU' in args.device:
82+
core.set_property("GPU", {"GPU_ENABLE_LOOP_UNROLLING": "NO", "CACHE_DIR": "./"})
8183

8284
# Read IR
8385
log.info('Reading model {}'.format(args.model))

0 commit comments

Comments
 (0)