Commit 409bf0b7 authored by shangxl's avatar shangxl
Browse files

修改main.cpp中的括号

parent 7d0097b3
......@@ -17,13 +17,11 @@ void MIGraphXSamplesUsage(char *programName)
int main(int argc,char *argv[]){
if (argc < 2 || argc > 2)
{
if (argc < 2 || argc > 2){
MIGraphXSamplesUsage(argv[0]);
return -1;
}
if (!strncmp(argv[1], "-h", 2))
{
if (!strncmp(argv[1], "-h", 2)){
MIGraphXSamplesUsage(argv[0]);
return 0;
}
......@@ -50,8 +48,7 @@ int main(int argc,char *argv[]){
migraphxSamples::DeepLabV3 deeplabv3;
initParamOfSegmentationUnet.configFilePath = CONFIG_FILE;
migraphxSamples::ErrorCode errorCode = deeplabv3.Initialize(initParamOfSegmentationUnet);
if(errorCode != migraphxSamples::SUCCESS)
{
if(errorCode != migraphxSamples::SUCCESS){
LOG_ERROR(stdout, "fail to initialize DeepLabV3!\n");
exit(-1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment