Skip to content

Commit

Permalink
Fix device-id parameter in edgetpu_benchmark.py
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-k committed May 3, 2021
1 parent 6914025 commit e018b3b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edgetpu_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
DEVICE_ID = args.device_id
USE_EDGETPU = (DEVICE != 'cpu')

if DEVICE_ID:
if DEVICE_ID is not None:
DEVICE = f'{DEVICE}:{DEVICE_ID}'

print(f'Using device: {DEVICE}')

model_path = args.model

COUNT = args.count
Expand Down

0 comments on commit e018b3b

Please sign in to comment.