[SAMPLES] Fix flake issues in Python speech sample (#12514)
* Fix flake issues * Add whitespace * Add whitespaces in tests asserts
This commit is contained in:
1 parent
b9457b3a31
commit
4dc713c7eb
5 files changed
+39
-38
No files matched your search
@@ -102,7 +102,7 @@ def main():
|
||||
if args.batch_size:
|
||||
batch_size = args.batch_size if args.context_window_left == args.context_window_right == 0 else 1
|
||||
|
||||
if any([not _input.node.layout.empty for _input in model.inputs]):
|
||||
if any((not _input.node.layout.empty for _input in model.inputs)):
|
||||
set_batch(model, batch_size)
|
||||
else:
|
||||
log.warning('Layout is not set for any input, so custom batch size is not set')
|
||||
|
||||
Reference in new issue
Block a user