[tools] fix bin processing in benchmark app (#10366)

* fix bin reading

* Remove unsupported type
This commit is contained in:
Alexey Lebedev
2022-02-15 10:34:14 +03:00
committed by GitHub
parent acf6185bf3
commit e85c473d59
2 changed files with 2 additions and 2 deletions
@@ -331,7 +331,7 @@ def run(args):
try:
logger.info(f' {k} , {benchmark.core.get_property(device, k)}')
except:
logger.info(f' {k} , UNSUPPORTED TYPE ')
pass
# Update number of streams
@@ -215,7 +215,7 @@ def get_binary_tensors(binary_paths, info, batch_sizes):
logger.info("Prepare binary file " + binary_filename)
binary_file_size = os.path.getsize(binary_filename)
blob_size = dtype().nbytes * int(np.prod(shape))
blob_size = dtype.itemsize * int(np.prod(shape))
if blob_size != binary_file_size:
raise Exception(
f"File {binary_filename} contains {binary_file_size} bytes but network expects {blob_size}")