diff --git a/src/framework/op_registry.h b/src/framework/op_registry.h index a76cc7e4910d1639a10fcc839e9073a837fd89f5..8a7beae993be1a9f2a52fb48d4930754aba784e1 100644 --- a/src/framework/op_registry.h +++ b/src/framework/op_registry.h @@ -45,7 +45,6 @@ struct OperatorRegistrar : public Registrar { << "OperatorRegistrar should be invoked at least by OpClass"; return; } - printf(" regis ting %s \n", op_type.c_str()); OpInfo info; OperatorRegistrarRecursive(op_type, &info); OpInfoMap::Instance()->Insert(op_type, info); @@ -108,7 +107,6 @@ class OpRegistry { __op_registrar_##op_type##_##device_name(#op_type); \ int TouchOpRegistrar_##op_type##_##device_name() { \ __op_registrar_##op_type##_##device_name.Touch(); \ - printf(" registering !! \n"); \ return 0; \ } diff --git a/src/io/loader.cpp b/src/io/loader.cpp index f3b19abbe17c3d5e8b5cc082a115c05058aa0219..51e007a6ab4bce415628649a40f711903bceee92 100644 --- a/src/io/loader.cpp +++ b/src/io/loader.cpp @@ -21,7 +21,6 @@ namespace paddle_mobile { using framework::Variable; static size_t ReadBuffer(const char *file_name, uint8_t **out) { - printf("%s \n", file_name); FILE *fp; fp = fopen(file_name, "rb"); PADDLE_MOBILE_ENFORCE(fp != NULL, " %s open failed !", file_name); diff --git a/src/operators/kernel/central-arm-func/batchnorm_arm_func.h b/src/operators/kernel/central-arm-func/batchnorm_arm_func.h index 2845e5f8b7d18e1c446e0eac73e730b59f9e4550..b2af17eb4aaf0a7ef98442f589162a3b6f371a3b 100644 --- a/src/operators/kernel/central-arm-func/batchnorm_arm_func.h +++ b/src/operators/kernel/central-arm-func/batchnorm_arm_func.h @@ -229,7 +229,7 @@ void BatchnormCompute(const BatchNormParam ¶m) { delete[] inv_std_ptr; } -#endif +#else float *inv_std_ptr = new float[C]; for (int i = 0; i < C; i++) { inv_std_ptr[i] = @@ -260,6 +260,7 @@ void BatchnormCompute(const BatchNormParam ¶m) { } } delete[] inv_std_ptr; +#endif } } // namespace operators