From 2655cd5efc2fec446bfd73e3f2cc03170f788459 Mon Sep 17 00:00:00 2001 From: yy0131 <1595992831@qq.com> Date: Wed, 12 Oct 2022 09:02:49 +0800 Subject: [PATCH] modified stdout -> stderr --- cplusplus/contrib/AI_painting/inc/utils.h | 2 +- cplusplus/contrib/Ascbot/inc/utils.h | 2 +- cplusplus/contrib/HandWrite/inc/utils.h | 2 +- cplusplus/contrib/ar_shadowgan/inc/utils.h | 2 +- cplusplus/contrib/cartoonGAN_picture/inc/utils.h | 2 +- cplusplus/contrib/robots_car/acl/TextRecognize/inc/utils.h | 2 +- cplusplus/contrib/super_resolution/inc/utils.h | 2 +- cplusplus/level1_single_api/1_acl/4_blas/gemm/inc/common.h | 2 +- .../4_op_dev/1_custom_op/op_proto/conv2d_tik.h | 4 ++-- .../4_op_dev/2_verify_op/acl_compile_add/inc/common.h | 2 +- .../4_op_dev/2_verify_op/acl_execute_add/inc/common.h | 2 +- .../2_verify_op/acl_execute_addmatmatelements/inc/common.h | 2 +- .../2_verify_op/acl_execute_addrowranges/inc/common.h | 2 +- .../4_op_dev/2_verify_op/acl_execute_conv2d/inc/common.h | 2 +- .../4_op_dev/2_verify_op/acl_execute_matmul/inc/common.h | 2 +- .../4_op_dev/2_verify_op/acl_execute_pow/inc/common.h | 2 +- .../4_op_dev/2_verify_op/acl_execute_reshape/inc/common.h | 2 +- .../5_200dk_peripheral/ascendcamera/inc/utils.h | 2 +- .../level1_single_api/5_200dk_peripheral/gpio/inc/gpio.h | 2 +- cplusplus/level1_single_api/5_200dk_peripheral/i2c/inc/i2c.h | 2 +- cplusplus/level1_single_api/5_200dk_peripheral/mic/inc/mic.h | 2 +- .../level1_single_api/5_200dk_peripheral/uart/inc/uart.h | 2 +- .../9_feature_retrieval/feature_retrieval/inc/common.h | 2 +- .../0_data_process/batchcrop/inc/utils.h | 3 ++- .../level2_simple_inference/0_data_process/crop/src/main.h | 2 +- .../0_data_process/cropandpaste/src/main.h | 2 +- .../level2_simple_inference/0_data_process/jpegd/src/main.h | 2 +- .../level2_simple_inference/0_data_process/jpege/src/main.h | 2 +- .../level2_simple_inference/0_data_process/resize/src/main.h | 2 +- .../0_data_process/smallResolution_cropandpaste/inc/utils.h | 2 +- .../level2_simple_inference/0_data_process/vdec/src/main.h | 2 +- .../0_data_process/vdecandvenc/inc/utils.h | 2 +- .../level2_simple_inference/0_data_process/venc/src/main.h | 4 ++-- .../0_data_process/venc_image/inc/utils.h | 2 +- .../1_classification/googlenet_imagenet_video/inc/utils.h | 2 +- .../resnet50_async_imagenet_classification/inc/utils.h | 2 +- .../resnet50_imagenet_classification/inc/utils.h | 2 +- .../resnet50_imagenet_dynamic_dims/inc/utils.h | 2 +- .../1_classification/vdec_resnet50_classification/inc/utils.h | 2 +- .../vpc_jpeg_resnet50_imagenet_classification/inc/utils.h | 2 +- .../vpc_resnet50_imagenet_classification/inc/utils.h | 2 +- .../VGG_SSD_coco_detection_CV_with_AIPP/inc/utils.h | 2 +- .../VGG_SSD_coco_detection_CV_without_AIPP/inc/utils.h | 2 +- .../VGG_SSD_coco_detection_DVPP_with_AIPP/inc/utils.h | 2 +- .../2_object_detection/YOLOV3_coco_detection_VENC/inc/utils.h | 2 +- .../YOLOV3_coco_detection_dynamic_AIPP/inc/utils.h | 2 +- .../YOLOV3_coco_detection_picture/inc/utils.h | 2 +- .../YOLOV3_coco_detection_picture_DVPP_with_AIPP/inc/utils.h | 2 +- .../YOLOV3_coco_detection_picture_with_freetype/inc/utils.h | 2 +- .../YOLOV3_coco_detection_video/inc/utils.h | 2 +- .../YOLOV3_dynamic_batch_detection_picture/inc/utils.h | 2 +- .../YOLOV4_coco_detection_picture/inc/utils.h | 2 +- cplusplus/level2_simple_inference/6_other/DeRain/inc/utils.h | 2 +- .../6_other/acl_compile_and_execute_conv2d/inc/utils.h | 2 +- .../6_other/acl_execute_conv2d/inc/utils.h | 2 +- .../6_other/super_resolution_dynamic/inc/utils.h | 2 +- 56 files changed, 59 insertions(+), 58 deletions(-) diff --git a/cplusplus/contrib/AI_painting/inc/utils.h b/cplusplus/contrib/AI_painting/inc/utils.h index 16ed0d728..ebc935c17 100644 --- a/cplusplus/contrib/AI_painting/inc/utils.h +++ b/cplusplus/contrib/AI_painting/inc/utils.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) template std::shared_ptr MakeSharedNoThrow() { diff --git a/cplusplus/contrib/Ascbot/inc/utils.h b/cplusplus/contrib/Ascbot/inc/utils.h index f61ac2e91..0b2df4b2c 100644 --- a/cplusplus/contrib/Ascbot/inc/utils.h +++ b/cplusplus/contrib/Ascbot/inc/utils.h @@ -27,7 +27,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/contrib/HandWrite/inc/utils.h b/cplusplus/contrib/HandWrite/inc/utils.h index fc169ac05..5a61db48d 100644 --- a/cplusplus/contrib/HandWrite/inc/utils.h +++ b/cplusplus/contrib/HandWrite/inc/utils.h @@ -28,7 +28,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/contrib/ar_shadowgan/inc/utils.h b/cplusplus/contrib/ar_shadowgan/inc/utils.h index 6caa31d2e..20194abff 100644 --- a/cplusplus/contrib/ar_shadowgan/inc/utils.h +++ b/cplusplus/contrib/ar_shadowgan/inc/utils.h @@ -9,7 +9,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define GRAY_IMAGE_SIZE(width, height) ((width) * (height) * 1) diff --git a/cplusplus/contrib/cartoonGAN_picture/inc/utils.h b/cplusplus/contrib/cartoonGAN_picture/inc/utils.h index 71d8161bd..c9fb14feb 100644 --- a/cplusplus/contrib/cartoonGAN_picture/inc/utils.h +++ b/cplusplus/contrib/cartoonGAN_picture/inc/utils.h @@ -28,7 +28,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGB32_CHAN_SIZE(width, height) (width * height * 3 *4) template std::shared_ptr MakeSharedNoThrow() { diff --git a/cplusplus/contrib/robots_car/acl/TextRecognize/inc/utils.h b/cplusplus/contrib/robots_car/acl/TextRecognize/inc/utils.h index f27b4bd3f..ec9c1c7c8 100755 --- a/cplusplus/contrib/robots_car/acl/TextRecognize/inc/utils.h +++ b/cplusplus/contrib/robots_car/acl/TextRecognize/inc/utils.h @@ -43,7 +43,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/contrib/super_resolution/inc/utils.h b/cplusplus/contrib/super_resolution/inc/utils.h index 26d7220b1..308c19775 100644 --- a/cplusplus/contrib/super_resolution/inc/utils.h +++ b/cplusplus/contrib/super_resolution/inc/utils.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBF32_CHAN_SIZE(width, height) ((width) * (height) * 4) typedef enum Result { diff --git a/cplusplus/level1_single_api/1_acl/4_blas/gemm/inc/common.h b/cplusplus/level1_single_api/1_acl/4_blas/gemm/inc/common.h index 233ffd8dd..b75e7b4fa 100644 --- a/cplusplus/level1_single_api/1_acl/4_blas/gemm/inc/common.h +++ b/cplusplus/level1_single_api/1_acl/4_blas/gemm/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/1_custom_op/op_proto/conv2d_tik.h b/cplusplus/level1_single_api/4_op_dev/1_custom_op/op_proto/conv2d_tik.h index 1da19f001..bddd7c7d6 100644 --- a/cplusplus/level1_single_api/4_op_dev/1_custom_op/op_proto/conv2d_tik.h +++ b/cplusplus/level1_single_api/4_op_dev/1_custom_op/op_proto/conv2d_tik.h @@ -3,7 +3,7 @@ #define GE_OP_CONV2DTIK_H #include "graph/operator_reg.h" -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) namespace ge { @@ -22,4 +22,4 @@ REG_OP(Conv2DTik) .OP_END_FACTORY_REG(Conv2DTik) } -#endif // GE_OPS_OP_CONV2DTIK_H \ No newline at end of file +#endif // GE_OPS_OP_CONV2DTIK_H diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_compile_add/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_compile_add/inc/common.h index e8f70b150..854c5931c 100755 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_compile_add/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_compile_add/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_add/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_add/inc/common.h index e8f70b150..854c5931c 100644 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_add/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_add/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addmatmatelements/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addmatmatelements/inc/common.h index e8f70b150..854c5931c 100644 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addmatmatelements/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addmatmatelements/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addrowranges/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addrowranges/inc/common.h index e8f70b150..854c5931c 100644 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addrowranges/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_addrowranges/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_conv2d/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_conv2d/inc/common.h index 1b5fbc62c..0f304c1e6 100755 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_conv2d/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_conv2d/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_matmul/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_matmul/inc/common.h index 1b5fbc62c..0f304c1e6 100755 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_matmul/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_matmul/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_pow/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_pow/inc/common.h index e8f70b150..854c5931c 100644 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_pow/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_pow/inc/common.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_reshape/inc/common.h b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_reshape/inc/common.h index 3c55c36bf..75bb07ec0 100644 --- a/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_reshape/inc/common.h +++ b/cplusplus/level1_single_api/4_op_dev/2_verify_op/acl_execute_reshape/inc/common.h @@ -29,7 +29,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) /** * @brief Read data from file diff --git a/cplusplus/level1_single_api/5_200dk_peripheral/ascendcamera/inc/utils.h b/cplusplus/level1_single_api/5_200dk_peripheral/ascendcamera/inc/utils.h index b985c52dd..9b9cf4f61 100644 --- a/cplusplus/level1_single_api/5_200dk_peripheral/ascendcamera/inc/utils.h +++ b/cplusplus/level1_single_api/5_200dk_peripheral/ascendcamera/inc/utils.h @@ -27,7 +27,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level1_single_api/5_200dk_peripheral/gpio/inc/gpio.h b/cplusplus/level1_single_api/5_200dk_peripheral/gpio/inc/gpio.h index 18cda94d5..5a09ac431 100644 --- a/cplusplus/level1_single_api/5_200dk_peripheral/gpio/inc/gpio.h +++ b/cplusplus/level1_single_api/5_200dk_peripheral/gpio/inc/gpio.h @@ -19,7 +19,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) class gpio { public: gpio(void) ; diff --git a/cplusplus/level1_single_api/5_200dk_peripheral/i2c/inc/i2c.h b/cplusplus/level1_single_api/5_200dk_peripheral/i2c/inc/i2c.h index 16fef4b29..b95480581 100644 --- a/cplusplus/level1_single_api/5_200dk_peripheral/i2c/inc/i2c.h +++ b/cplusplus/level1_single_api/5_200dk_peripheral/i2c/inc/i2c.h @@ -99,7 +99,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) class i2c { diff --git a/cplusplus/level1_single_api/5_200dk_peripheral/mic/inc/mic.h b/cplusplus/level1_single_api/5_200dk_peripheral/mic/inc/mic.h index 65c803446..fc7ee6b6c 100644 --- a/cplusplus/level1_single_api/5_200dk_peripheral/mic/inc/mic.h +++ b/cplusplus/level1_single_api/5_200dk_peripheral/mic/inc/mic.h @@ -22,7 +22,7 @@ extern "C" { #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define ASCEND_MIC_ERROR 0xFF #define ASCEND_MIC_SUCCESS 0 class Mic { diff --git a/cplusplus/level1_single_api/5_200dk_peripheral/uart/inc/uart.h b/cplusplus/level1_single_api/5_200dk_peripheral/uart/inc/uart.h index 41b3bab99..08156fed1 100644 --- a/cplusplus/level1_single_api/5_200dk_peripheral/uart/inc/uart.h +++ b/cplusplus/level1_single_api/5_200dk_peripheral/uart/inc/uart.h @@ -21,7 +21,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) class uart { public: uart(void) ; diff --git a/cplusplus/level1_single_api/9_feature_retrieval/feature_retrieval/inc/common.h b/cplusplus/level1_single_api/9_feature_retrieval/feature_retrieval/inc/common.h index 31d00c0fa..1fffc19d9 100755 --- a/cplusplus/level1_single_api/9_feature_retrieval/feature_retrieval/inc/common.h +++ b/cplusplus/level1_single_api/9_feature_retrieval/feature_retrieval/inc/common.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define UINT8_DATA_LEN 256 diff --git a/cplusplus/level2_simple_inference/0_data_process/batchcrop/inc/utils.h b/cplusplus/level2_simple_inference/0_data_process/batchcrop/inc/utils.h index 4c147124a..6380c61a1 100644 --- a/cplusplus/level2_simple_inference/0_data_process/batchcrop/inc/utils.h +++ b/cplusplus/level2_simple_inference/0_data_process/batchcrop/inc/utils.h @@ -1,3 +1,4 @@ + /** * @file utils.h * @@ -14,7 +15,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, FAILED = 1 } Result; diff --git a/cplusplus/level2_simple_inference/0_data_process/crop/src/main.h b/cplusplus/level2_simple_inference/0_data_process/crop/src/main.h index d2da5b34a..8bc527642 100644 --- a/cplusplus/level2_simple_inference/0_data_process/crop/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/crop/src/main.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/cropandpaste/src/main.h b/cplusplus/level2_simple_inference/0_data_process/cropandpaste/src/main.h index 7b99524c0..3d9d22305 100644 --- a/cplusplus/level2_simple_inference/0_data_process/cropandpaste/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/cropandpaste/src/main.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/jpegd/src/main.h b/cplusplus/level2_simple_inference/0_data_process/jpegd/src/main.h index 7ed232f87..c7ee7d90b 100644 --- a/cplusplus/level2_simple_inference/0_data_process/jpegd/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/jpegd/src/main.h @@ -22,7 +22,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/jpege/src/main.h b/cplusplus/level2_simple_inference/0_data_process/jpege/src/main.h index 61b468d30..fad001c07 100644 --- a/cplusplus/level2_simple_inference/0_data_process/jpege/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/jpege/src/main.h @@ -26,7 +26,7 @@ #include "acl/ops/acl_dvpp.h" #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/resize/src/main.h b/cplusplus/level2_simple_inference/0_data_process/resize/src/main.h index 5d9662333..1537e209e 100644 --- a/cplusplus/level2_simple_inference/0_data_process/resize/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/resize/src/main.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/smallResolution_cropandpaste/inc/utils.h b/cplusplus/level2_simple_inference/0_data_process/smallResolution_cropandpaste/inc/utils.h index 534a04e74..e726dfd54 100644 --- a/cplusplus/level2_simple_inference/0_data_process/smallResolution_cropandpaste/inc/utils.h +++ b/cplusplus/level2_simple_inference/0_data_process/smallResolution_cropandpaste/inc/utils.h @@ -14,7 +14,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) #define IMAGE_FILE_NAME_LEN 1024 diff --git a/cplusplus/level2_simple_inference/0_data_process/vdec/src/main.h b/cplusplus/level2_simple_inference/0_data_process/vdec/src/main.h index 53458a2d3..b1761e8d3 100644 --- a/cplusplus/level2_simple_inference/0_data_process/vdec/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/vdec/src/main.h @@ -23,7 +23,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/vdecandvenc/inc/utils.h b/cplusplus/level2_simple_inference/0_data_process/vdecandvenc/inc/utils.h index d7c89f433..916ca9fd4 100644 --- a/cplusplus/level2_simple_inference/0_data_process/vdecandvenc/inc/utils.h +++ b/cplusplus/level2_simple_inference/0_data_process/vdecandvenc/inc/utils.h @@ -24,7 +24,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/0_data_process/venc/src/main.h b/cplusplus/level2_simple_inference/0_data_process/venc/src/main.h index 09a8dd331..23f1301af 100644 --- a/cplusplus/level2_simple_inference/0_data_process/venc/src/main.h +++ b/cplusplus/level2_simple_inference/0_data_process/venc/src/main.h @@ -24,7 +24,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) @@ -44,4 +44,4 @@ enum Result { FAILED = 1 }; -#endif \ No newline at end of file +#endif diff --git a/cplusplus/level2_simple_inference/0_data_process/venc_image/inc/utils.h b/cplusplus/level2_simple_inference/0_data_process/venc_image/inc/utils.h index df577680e..cd1db44b2 100644 --- a/cplusplus/level2_simple_inference/0_data_process/venc_image/inc/utils.h +++ b/cplusplus/level2_simple_inference/0_data_process/venc_image/inc/utils.h @@ -20,7 +20,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/googlenet_imagenet_video/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/googlenet_imagenet_video/inc/utils.h index f8d2b467d..8ca705c42 100644 --- a/cplusplus/level2_simple_inference/1_classification/googlenet_imagenet_video/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/googlenet_imagenet_video/inc/utils.h @@ -25,7 +25,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) template diff --git a/cplusplus/level2_simple_inference/1_classification/resnet50_async_imagenet_classification/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/resnet50_async_imagenet_classification/inc/utils.h index 7eb0cd482..32a2c00f7 100644 --- a/cplusplus/level2_simple_inference/1_classification/resnet50_async_imagenet_classification/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/resnet50_async_imagenet_classification/inc/utils.h @@ -15,7 +15,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_classification/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_classification/inc/utils.h index 261c0f46c..043b5e897 100644 --- a/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_classification/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_classification/inc/utils.h @@ -14,7 +14,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...)fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...)fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_dynamic_dims/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_dynamic_dims/inc/utils.h index ecf85f315..e0278f2bc 100644 --- a/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_dynamic_dims/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/resnet50_imagenet_dynamic_dims/inc/utils.h @@ -33,7 +33,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...)fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...)fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/vdec_resnet50_classification/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/vdec_resnet50_classification/inc/utils.h index 5f6e05f7c..8de334e22 100644 --- a/cplusplus/level2_simple_inference/1_classification/vdec_resnet50_classification/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/vdec_resnet50_classification/inc/utils.h @@ -21,7 +21,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/vpc_jpeg_resnet50_imagenet_classification/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/vpc_jpeg_resnet50_imagenet_classification/inc/utils.h index d843aaaa2..375374de2 100644 --- a/cplusplus/level2_simple_inference/1_classification/vpc_jpeg_resnet50_imagenet_classification/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/vpc_jpeg_resnet50_imagenet_classification/inc/utils.h @@ -13,7 +13,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/1_classification/vpc_resnet50_imagenet_classification/inc/utils.h b/cplusplus/level2_simple_inference/1_classification/vpc_resnet50_imagenet_classification/inc/utils.h index 4f0c93db2..06d8e2492 100644 --- a/cplusplus/level2_simple_inference/1_classification/vpc_resnet50_imagenet_classification/inc/utils.h +++ b/cplusplus/level2_simple_inference/1_classification/vpc_resnet50_imagenet_classification/inc/utils.h @@ -13,7 +13,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_with_AIPP/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_with_AIPP/inc/utils.h index a538f785e..4a1ade339 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_with_AIPP/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_with_AIPP/inc/utils.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define MODEL_INPUT_WIDTH 304 #define MODEL_INPUT_HEIGHT 300 diff --git a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_without_AIPP/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_without_AIPP/inc/utils.h index 7d53869f2..380bd8cd1 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_without_AIPP/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_CV_without_AIPP/inc/utils.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define MODEL_INPUT_WIDTH 300 #define MODEL_INPUT_HEIGHT 300 diff --git a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_DVPP_with_AIPP/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_DVPP_with_AIPP/inc/utils.h index af44be36b..ea6773f4f 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_DVPP_with_AIPP/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/VGG_SSD_coco_detection_DVPP_with_AIPP/inc/utils.h @@ -29,7 +29,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_VENC/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_VENC/inc/utils.h index 217ea3ad6..a3cf0028c 100755 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_VENC/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_VENC/inc/utils.h @@ -28,7 +28,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_dynamic_AIPP/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_dynamic_AIPP/inc/utils.h index 80d71dd94..3c7e4d1bc 100755 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_dynamic_AIPP/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_dynamic_AIPP/inc/utils.h @@ -29,7 +29,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARNNING_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/inc/utils.h index 557bd4929..845271046 100755 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture/inc/utils.h @@ -29,7 +29,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_DVPP_with_AIPP/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_DVPP_with_AIPP/inc/utils.h index d363407cd..636ae3eea 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_DVPP_with_AIPP/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_DVPP_with_AIPP/inc/utils.h @@ -16,7 +16,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_with_freetype/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_with_freetype/inc/utils.h index 166acb610..215ec53cb 100755 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_with_freetype/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_picture_with_freetype/inc/utils.h @@ -27,7 +27,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/inc/utils.h index 69516dd68..d4f2822c5 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_coco_detection_video/inc/utils.h @@ -31,7 +31,7 @@ using namespace std; #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) #define YUV420SP_SIZE(width, height) ((width) * (height) * 3 / 2) diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_dynamic_batch_detection_picture/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_dynamic_batch_detection_picture/inc/utils.h index bbf328608..76d6e56df 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_dynamic_batch_detection_picture/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV3_dynamic_batch_detection_picture/inc/utils.h @@ -13,7 +13,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/2_object_detection/YOLOV4_coco_detection_picture/inc/utils.h b/cplusplus/level2_simple_inference/2_object_detection/YOLOV4_coco_detection_picture/inc/utils.h index 5ccde10ed..fd8f35197 100644 --- a/cplusplus/level2_simple_inference/2_object_detection/YOLOV4_coco_detection_picture/inc/utils.h +++ b/cplusplus/level2_simple_inference/2_object_detection/YOLOV4_coco_detection_picture/inc/utils.h @@ -14,7 +14,7 @@ #define INFO_LOG(fmt, ...) fprintf(stdout, "[INFO] " fmt "\n", ##__VA_ARGS__) #define WARN_LOG(fmt, ...) fprintf(stdout, "[WARN] " fmt "\n", ##__VA_ARGS__) -#define ERROR_LOG(fmt, ...) fprintf(stdout, "[ERROR] " fmt "\n", ##__VA_ARGS__) +#define ERROR_LOG(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__) typedef enum Result { SUCCESS = 0, diff --git a/cplusplus/level2_simple_inference/6_other/DeRain/inc/utils.h b/cplusplus/level2_simple_inference/6_other/DeRain/inc/utils.h index 2539fdbde..d2060c955 100644 --- a/cplusplus/level2_simple_inference/6_other/DeRain/inc/utils.h +++ b/cplusplus/level2_simple_inference/6_other/DeRain/inc/utils.h @@ -26,7 +26,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBU8_IMAGE_SIZE(width, height) ((width) * (height) * 3) template diff --git a/cplusplus/level2_simple_inference/6_other/acl_compile_and_execute_conv2d/inc/utils.h b/cplusplus/level2_simple_inference/6_other/acl_compile_and_execute_conv2d/inc/utils.h index 8db836265..53d45b0e1 100644 --- a/cplusplus/level2_simple_inference/6_other/acl_compile_and_execute_conv2d/inc/utils.h +++ b/cplusplus/level2_simple_inference/6_other/acl_compile_and_execute_conv2d/inc/utils.h @@ -35,7 +35,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define DEBUG_LOG(fmt, args...) fprintf(stdout, "[DEBUG] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) class RunStatus { public: diff --git a/cplusplus/level2_simple_inference/6_other/acl_execute_conv2d/inc/utils.h b/cplusplus/level2_simple_inference/6_other/acl_execute_conv2d/inc/utils.h index 8db836265..53d45b0e1 100644 --- a/cplusplus/level2_simple_inference/6_other/acl_execute_conv2d/inc/utils.h +++ b/cplusplus/level2_simple_inference/6_other/acl_execute_conv2d/inc/utils.h @@ -35,7 +35,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define DEBUG_LOG(fmt, args...) fprintf(stdout, "[DEBUG] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) class RunStatus { public: diff --git a/cplusplus/level2_simple_inference/6_other/super_resolution_dynamic/inc/utils.h b/cplusplus/level2_simple_inference/6_other/super_resolution_dynamic/inc/utils.h index 0eeccffb9..7ed8bbec9 100644 --- a/cplusplus/level2_simple_inference/6_other/super_resolution_dynamic/inc/utils.h +++ b/cplusplus/level2_simple_inference/6_other/super_resolution_dynamic/inc/utils.h @@ -27,7 +27,7 @@ #define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args) #define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args) -#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args) +#define ERROR_LOG(fmt, args...) fprintf(stderr, "[ERROR] " fmt "\n", ##args) #define RGBF32_CHAN_SIZE(width, height) ((width) * (height) * 4) typedef enum Result { -- Gitee