提交 39897a7c 编写于 作者: D dolphin8

fix clang-format

上级 97102280
......@@ -16,9 +16,9 @@ limitations under the License. */
#include <vector>
#ifdef PADDLE_MOBILE_DEBUG
#include <cstring>
#include <iostream>
#include <sstream>
#include <cstring>
#include <string>
#endif
#ifdef ANDROID
......@@ -116,26 +116,29 @@ struct ToLog {
Print printer_;
};
#define LOG(level) \
if (level > paddle_mobile::log_level) { \
} else \
paddle_mobile::ToLog( \
level, \
static_cast<std::stringstream&>(std::stringstream() \
<< "[file: " \
<< (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1) : __FILE__) \
<< "] [line: " << __LINE__ << "] ") \
.str())
#define DLOG \
if (paddle_mobile::kLOG_DEBUG > paddle_mobile::log_level) { \
} else \
paddle_mobile::ToLog( \
paddle_mobile::kLOG_DEBUG, \
static_cast<std::stringstream&>(std::stringstream() \
<< "[file: " \
<< (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1) : __FILE__) \
<< "] [line: " << __LINE__ << "] ") \
#define LOG(level) \
if (level > paddle_mobile::log_level) { \
} else \
paddle_mobile::ToLog( \
level, static_cast<std::stringstream &>( \
std::stringstream() \
<< "[file: " \
<< (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1) \
: __FILE__) \
<< "] [line: " << __LINE__ << "] ") \
.str())
#define DLOG \
if (paddle_mobile::kLOG_DEBUG > paddle_mobile::log_level) { \
} else \
paddle_mobile::ToLog( \
paddle_mobile::kLOG_DEBUG, \
static_cast<std::stringstream &>( \
std::stringstream() \
<< "[file: " \
<< (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1) \
: __FILE__) \
<< "] [line: " << __LINE__ << "] ") \
.str())
#define LOGF(level, format, ...) \
......
......@@ -14,10 +14,10 @@ limitations under the License. */
#pragma once
#include <functional>
#include <map>
#include <string>
#include <vector>
#include <functional>
#include "framework/attribute.h"
#include "framework/scope.h"
......
......@@ -15,9 +15,9 @@ limitations under the License. */
#pragma once
#include <string>
#include <typeinfo>
#include <unordered_map>
#include <vector>
#include <typeinfo>
#include "common/enforce.h"
#include "common/log.h"
......
......@@ -15,8 +15,8 @@ limitations under the License. */
#pragma once
#include <initializer_list>
#include <vector>
#include <typeinfo>
#include <vector>
#include "common/enforce.h"
#include "common/variant.h"
#include "dim.h"
......
......@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */
#include "framework/program/program-optimize/node.h"
#include "framework/operator.h"
#include <algorithm>
#include "framework/operator.h"
namespace paddle_mobile {
......
......@@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */
#include "framework/program/program-optimize/program_optimize.h"
#include "framework/program/program-optimize/fusion_op_register.h"
#include <algorithm>
#include "framework/program/program-optimize/fusion_op_register.h"
namespace paddle_mobile {
......
......@@ -14,10 +14,10 @@ limitations under the License. */
#include "framework/scope.h"
#include <algorithm>
#include <set>
#include <string>
#include <vector>
#include <algorithm>
namespace paddle_mobile {
namespace framework {
......
......@@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */
#include "io/io.h"
#include <algorithm>
#include <vector>
#include "common/enforce.h"
#include "common/log.h"
......@@ -24,7 +25,6 @@ limitations under the License. */
#include "framework/program/var_desc.h"
#include "framework/scope.h"
#include "framework/tensor.h"
#include <algorithm>
#ifdef PADDLE_EXECUTOR_MULTITHREAD
#include <queue>
#include <utility>
......
......@@ -14,7 +14,6 @@ limitations under the License. */
#ifdef BATCHNORM_OP
#include "operators/kernel/batchnorm_kernel.h"
#include <cmath>
......
......@@ -14,7 +14,6 @@ limitations under the License. */
#ifdef BATCHNORM_OP
#include "operators/kernel/batchnorm_kernel.h"
namespace paddle_mobile {
......
......@@ -16,9 +16,9 @@ limitations under the License. */
#pragma once
#include <vector>
#include <cmath>
#include <algorithm>
#include <cmath>
#include <vector>
#include "framework/operator.h"
#include "operators/math/transform.h"
#include "operators/op_param.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册