diff --git a/cplusplus/contrib/AI_painting/inc/utils.h b/cplusplus/contrib/AI_painting/inc/utils.h index 16ed0d728bd5643bf79f131d795b372d890c92e7..ebc935c17505530a75978d8afa40b8dc54647087 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 f61ac2e9162058f10afb8f58413a1f7ecf6debda..0b2df4b2ca3852eb4c4913fae9c43220fd094127 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 fc169ac05469eab75aefac29621d69a33dddc7df..5a61db48dab10e36e509dfc4a6a514e7f74dafef 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 6caa31d2e16bafedbc4adcfebe8e0772c59fc16a..20194abff44090e4d29690e24e0af57d86202070 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 71d8161bdc5a5f7c5a3fa701ba28b1876224669d..c9fb14feb10c294cdcf27a6543daed7ab70497bb 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 f27b4bd3f20436032f9ef5981cdb87023ab538e7..ec9c1c7c80f3b6f5e8f8c036605a922ac755da4f 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 26d7220b17a66603c831e5b8f0b4d0686a3ec49c..308c19775a8bc7aa52bebaddc5f6cb261154dd18 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 233ffd8ddda4166859520de59712a4112daaccaf..b75e7b4facaf6d51fc68847ea86aed2ec630345e 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 1da19f001b3d7f0973134385dbe36cb557657c28..bddd7c7d6ff113c34e1c9c2694f308be145a3602 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 e8f70b15015ae79ee26c8c068fcd5a6dd76a31b6..854c5931c321a8b6b9b81114b16189a78f5ac7b3 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 e8f70b15015ae79ee26c8c068fcd5a6dd76a31b6..854c5931c321a8b6b9b81114b16189a78f5ac7b3 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 e8f70b15015ae79ee26c8c068fcd5a6dd76a31b6..854c5931c321a8b6b9b81114b16189a78f5ac7b3 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 e8f70b15015ae79ee26c8c068fcd5a6dd76a31b6..854c5931c321a8b6b9b81114b16189a78f5ac7b3 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 1b5fbc62c022e7ca430b81cd25ac560e8ed7eec6..0f304c1e60050230e458ee44a864b512e139d6d5 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 1b5fbc62c022e7ca430b81cd25ac560e8ed7eec6..0f304c1e60050230e458ee44a864b512e139d6d5 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 e8f70b15015ae79ee26c8c068fcd5a6dd76a31b6..854c5931c321a8b6b9b81114b16189a78f5ac7b3 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 3c55c36bfd9dd6c0a498fc84d2308e5113abf733..75bb07ec00efc7398bbd8546ec1e879d81510b1b 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 b985c52dd078bfed59854a3ad800445cc6875eea..9b9cf4f61689808c9d9b49d5787c62be100f64ad 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 18cda94d5440cad788fd4d25c1d95248d7081869..5a09ac431ea80b321a6e0924a5bcde5b4f11ad92 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 16fef4b29eda5563b56b84153c373520caa9954c..b95480581f97e7033dc6a4ceaae190463dee3108 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 65c8034466f0c8f27fe9887eaf2a91803cef432e..fc7ee6b6ce388d7c8a03bc8eb2233cd898eff846 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 41b3bab99d0d5e289497eed7922ec2424ecdff85..08156fed1d135d956affd3ea8a27462fcfd42006 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 31d00c0fa3e9575cfb2dc7cf49e699d364b6e5b8..1fffc19d99294f81c059650d6a34cb38fb251764 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 4c147124a8b9796f72705ba401e6bcaaaf929d4c..6380c61a1a18bd9ad95b1ee79b2bc475e61c786d 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 d2da5b34aaf53fadcab2685dbbe10e8e58b2791f..8bc52764231e83db74e5bdae74e9454a566a8c53 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 7b99524c08f8e962562695054d8357e1d2832d7c..3d9d2230525906c20a303ce9d11f763d31601e1c 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 7ed232f879eeb62f103080fcbda30061b73d937c..c7ee7d90ba8167ef33141532ba1ece249ea683cf 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 61b468d3038d7b98d670cb28a1a294f35b90644a..fad001c0770d7ca2ac8fdfc63ab457fde6750d42 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 5d9662333c47d8e57c94aa95a727c25d4ca25c3a..1537e209ea1eb75bfc93a996580b886d7c3f6689 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 534a04e74e29d16c026180939132ad0e9a57c829..e726dfd549f351b1da9cd2ec69d3e43ec933c2cb 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 53458a2d32aefb73096c06734f00702825033dd3..b1761e8d38f123d1116d3e64efb06e9d285eb2cc 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 d7c89f433d4628b37af137d3541e0f66f99be57c..916ca9fd46c445b1c1a93d0740cffdb1478ea4e3 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 09a8dd33168fc6543d17a019f52bba971b748d6c..23f1301afcae4995a8788e676c2eaa91ab3b50d6 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 df577680eeb294015e448ddcceccc0560b852112..cd1db44b2034b7eef87c21fa8ef92abcd316b426 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 f8d2b467d0299f7feeed02b39c35b79827021c7e..8ca705c425e1210e2f727f02a597d1195bc24c9c 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 7eb0cd4822c67b062862032bdecc8e26409a95f9..32a2c00f746857795bb61c2801ccf9847f7c1299 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 261c0f46cc1f9ecaf17a908d35fca2acdba43814..043b5e8971d00203d2c4888260841cbcbc2f1a35 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 ecf85f31536a21d482ee8f64c65fac8c0adce8bc..e0278f2bc2c4ff1fdefabbba7ac83f1d4ed1d3be 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 5f6e05f7c6e0e67cd1a30ad396affc57255e7bb8..8de334e22175952275278d043b3b1bc522c99b75 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 d843aaaa21e48bf6ce184298cbff83d2b4dfa713..375374de20b26b8fbc16714bda7c9616d12bd5c1 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 4f0c93db2f85ecd8981bc8ebc06646d284611bbe..06d8e249241ff1f4861658d13d4b675386247eb8 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 a538f785ee2c4798913236bc2673d97bfbe794fa..4a1ade3391e4b427459879fb7d510b1b7d4a889c 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 7d53869f20a75c84de660585a900775d894231f9..380bd8cd1996afa4143f1e22ebf87d48530e8bdd 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 af44be36b4455423ae1d6c85e8c6e97bee008f68..ea6773f4f1b5116b41b086a4bac4d5e99a67ab0c 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 217ea3ad6eaf52261fe8ca95cfcbdcf9e8d3bc79..a3cf0028cec639e00ee02c65eec32316836738e1 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 80d71dd94c6d5e6f3c80274acb831285597fdd86..3c7e4d1bc83063a6cc577408ebd758d4e644d2e5 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 557bd4929c7310de425a6ae0040b85ee92341df3..8452710466ebc96f6db338cb47f392561156ac46 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 d363407cd0379fae8473b5c71c3c899ef20aa878..636ae3eea681a35dcb1507468de4d209f9fdd6c7 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 166acb6108df2d254d994d866685a839c3d810d9..215ec53cbca64cbbff752ccd3825f3591e070a8c 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 69516dd68e5740738d50e223749bc135ad0ee333..d4f2822c5d7f1c708ba2a0f77cdbd830e0ca9c42 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 bbf3286084798ed4f9e20f11151e5e28448d00ab..76d6e56df1c3a49dcd4613bbda7cfc6129d70fe2 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 5ccde10ed5a0acccd92a8897d0a66f33db48c12e..fd8f351972f7b9043d4ec71ee6f6c8ec5a1900ad 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 2539fdbde8953c5bdac3ac9f5c86983aabae29f7..d2060c955e2035755ab8d9f8f9a696d2399e7a54 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 8db8362656e85f9d5b3b190f26ed8df072b3ed87..53d45b0e1df0421fd753c7083d3d14afdbca91bd 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 8db8362656e85f9d5b3b190f26ed8df072b3ed87..53d45b0e1df0421fd753c7083d3d14afdbca91bd 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 0eeccffb9a9e100790139a4e6053fc1f0a40629a..7ed8bbec97fc3e07d01e47a5e5679bfc7fbb2292 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 {