mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 12:52:23 +00:00
metrics: Fix atoi invalid syntax
This PR will avoid to have the strconv.atoi parsing error when we are retrieving the results from the json. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
f9dec11a8f
commit
3b883bf5a7
@ -81,7 +81,7 @@ description = "tensorflow resnet model"
|
|||||||
# within (inclusive)
|
# within (inclusive)
|
||||||
checkvar = ".\"tensorflow\".Results | .[] | .Resnet.Result"
|
checkvar = ".\"tensorflow\".Results | .[] | .Resnet.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 4379.2
|
midval = 4379.0
|
||||||
minpercent = 20.0
|
minpercent = 20.0
|
||||||
maxpercent = 20.0
|
maxpercent = 20.0
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ description = "tensorflow resnet model"
|
|||||||
# within (inclusive)
|
# within (inclusive)
|
||||||
checkvar = ".\"tensorflow\".Results | .[] | .Resnet.Result"
|
checkvar = ".\"tensorflow\".Results | .[] | .Resnet.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 4396.2
|
midval = 4396.0
|
||||||
minpercent = 20.0
|
minpercent = 20.0
|
||||||
maxpercent = 20.0
|
maxpercent = 20.0
|
||||||
|
|
||||||
@ -94,6 +94,6 @@ description = "tensorflow alexnet model"
|
|||||||
# within (inclusive)
|
# within (inclusive)
|
||||||
checkvar = ".\"tensorflow\".Results | .[] | .AlexNet.Result"
|
checkvar = ".\"tensorflow\".Results | .[] | .AlexNet.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 98.3
|
midval = 98.0
|
||||||
minpercent = 20.0
|
minpercent = 20.0
|
||||||
maxpercent = 20.0
|
maxpercent = 20.0
|
||||||
|
@ -136,8 +136,8 @@ function tensorflow_test() {
|
|||||||
local json="$(cat << EOF
|
local json="$(cat << EOF
|
||||||
{
|
{
|
||||||
"Resnet": {
|
"Resnet": {
|
||||||
"Result": "${resnet_results}",
|
"Result": ${resnet_results},
|
||||||
"Average": "${average_resnet}",
|
"Average": ${average_resnet},
|
||||||
"Units": "images/s"
|
"Units": "images/s"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,8 +152,8 @@ EOF
|
|||||||
local json="$(cat << EOF
|
local json="$(cat << EOF
|
||||||
{
|
{
|
||||||
"AlexNet": {
|
"AlexNet": {
|
||||||
"Result": "${alexnet_results}",
|
"Result": ${alexnet_results},
|
||||||
"Average": "${average_alexnet}",
|
"Average": ${average_alexnet},
|
||||||
"Units": "images/s"
|
"Units": "images/s"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user