mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-08 12:54:05 +00:00
metrics: Use collect_results function in tensorflow mobilenet test
This PR uses the collect results function defined in common for
the tensorflow mobilenet test.
Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
(cherry picked from commit d3e57cf454
)
This commit is contained in:
parent
f29f811470
commit
1b68145b6a
@ -87,14 +87,7 @@ function mobilenet_v1_bfloat16_fp32_test() {
|
||||
touch "${host_trigger_file}"
|
||||
info "All containers are running the workload..."
|
||||
|
||||
for i in "${containers[@]}"; do
|
||||
check_file=$(sudo -E "${CTR_EXE}" t exec -d --exec-id "$(random_name)" "${i}" sh -c "${CMD_FILE}")
|
||||
retries="30"
|
||||
for j in $(seq 1 "${retries}"); do
|
||||
[ "${check_file}" = 1 ] && break
|
||||
sleep 1
|
||||
done
|
||||
done
|
||||
collect_results "${CMD_FILE}"
|
||||
|
||||
for i in "${containers[@]}"; do
|
||||
sudo -E "${CTR_EXE}" t exec --exec-id "$(random_name)" "${i}" sh -c "${CMD_RESULTS}" >> "${tensorflow_file}"
|
||||
|
Loading…
Reference in New Issue
Block a user