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
deeplabv3_migraphx
Commits
409bf0b7
Commit
409bf0b7
authored
Sep 09, 2025
by
shangxl
Browse files
修改main.cpp中的括号
parent
7d0097b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Src/main.cpp
Src/main.cpp
+3
-6
No files found.
Src/main.cpp
View file @
409bf0b7
...
@@ -17,13 +17,11 @@ void MIGraphXSamplesUsage(char *programName)
...
@@ -17,13 +17,11 @@ void MIGraphXSamplesUsage(char *programName)
int
main
(
int
argc
,
char
*
argv
[]){
int
main
(
int
argc
,
char
*
argv
[]){
if
(
argc
<
2
||
argc
>
2
)
if
(
argc
<
2
||
argc
>
2
){
{
MIGraphXSamplesUsage
(
argv
[
0
]);
MIGraphXSamplesUsage
(
argv
[
0
]);
return
-
1
;
return
-
1
;
}
}
if
(
!
strncmp
(
argv
[
1
],
"-h"
,
2
))
if
(
!
strncmp
(
argv
[
1
],
"-h"
,
2
)){
{
MIGraphXSamplesUsage
(
argv
[
0
]);
MIGraphXSamplesUsage
(
argv
[
0
]);
return
0
;
return
0
;
}
}
...
@@ -50,8 +48,7 @@ int main(int argc,char *argv[]){
...
@@ -50,8 +48,7 @@ int main(int argc,char *argv[]){
migraphxSamples
::
DeepLabV3
deeplabv3
;
migraphxSamples
::
DeepLabV3
deeplabv3
;
initParamOfSegmentationUnet
.
configFilePath
=
CONFIG_FILE
;
initParamOfSegmentationUnet
.
configFilePath
=
CONFIG_FILE
;
migraphxSamples
::
ErrorCode
errorCode
=
deeplabv3
.
Initialize
(
initParamOfSegmentationUnet
);
migraphxSamples
::
ErrorCode
errorCode
=
deeplabv3
.
Initialize
(
initParamOfSegmentationUnet
);
if
(
errorCode
!=
migraphxSamples
::
SUCCESS
)
if
(
errorCode
!=
migraphxSamples
::
SUCCESS
){
{
LOG_ERROR
(
stdout
,
"fail to initialize DeepLabV3!
\n
"
);
LOG_ERROR
(
stdout
,
"fail to initialize DeepLabV3!
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
}
}
...
...
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