Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_migraphx
Commits
061ca3e8
Commit
061ca3e8
authored
Nov 15, 2023
by
liucong
Browse files
去掉CPP文件的推理时间打印
parent
11760f5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
Src/main.cpp
Src/main.cpp
+0
-4
No files found.
Src/main.cpp
View file @
061ca3e8
...
@@ -32,11 +32,7 @@ int main()
...
@@ -32,11 +32,7 @@ int main()
// 推理
// 推理
std
::
vector
<
std
::
vector
<
migraphxSamples
::
ResultOfPrediction
>>
predictions
;
std
::
vector
<
std
::
vector
<
migraphxSamples
::
ResultOfPrediction
>>
predictions
;
double
time1
=
cv
::
getTickCount
();
classifier
.
Classify
(
srcImages
,
predictions
);
classifier
.
Classify
(
srcImages
,
predictions
);
double
time2
=
cv
::
getTickCount
();
double
elapsedTime
=
(
time2
-
time1
)
*
1000
/
cv
::
getTickFrequency
();
LOG_INFO
(
stdout
,
"inference time:%f ms
\n
"
,
elapsedTime
);
// 获取推理结果
// 获取推理结果
LOG_INFO
(
stdout
,
"========== Classification Results ==========
\n
"
);
LOG_INFO
(
stdout
,
"========== Classification Results ==========
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment