Skip to content
Snippets Groups Projects
Commit abf46c13 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Core] enable specifying batch size as option in throughput_test

parent 603b8bad
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ import os ...@@ -30,7 +30,7 @@ import os
import subprocess import subprocess
def throughput_test(model): def throughput_test(model, batchsize=1000):
"""Runs the throughput test for the given model remotely on the pynq board. """Runs the throughput test for the given model remotely on the pynq board.
The metadata properties related to the pynq board have to be set. The metadata properties related to the pynq board have to be set.
Returns a dictionary with results of the throughput test""" Returns a dictionary with results of the throughput test"""
...@@ -47,7 +47,8 @@ def throughput_test(model): ...@@ -47,7 +47,8 @@ def throughput_test(model):
cmd = ( cmd = (
"sshpass -p {} ssh {}@{} -p {} " "sshpass -p {} ssh {}@{} -p {} "
'"cd {}/{}; echo "{}" | ' '"cd {}/{}; echo "{}" | '
'sudo -S python3.6 driver.py --exec_mode="throughput_test" --batchsize=1000"' 'sudo -S python3.6 driver.py --exec_mode="throughput_test" --batchsize=%d"'
% batchsize
).format( ).format(
pynq_password, pynq_password,
pynq_username, pynq_username,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment