From 3f65869ba6b4b060993032cae1ca40b7f6e79367 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Sat, 12 Jan 2019 16:51:44 +0800 Subject: [PATCH] try fix test=develop --- paddle/fluid/imperative/layer.h | 1 + paddle/fluid/imperative/tracer.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/imperative/layer.h b/paddle/fluid/imperative/layer.h index 64429af54..86c2dc3fa 100644 --- a/paddle/fluid/imperative/layer.h +++ b/paddle/fluid/imperative/layer.h @@ -22,6 +22,7 @@ #include "paddle/fluid/framework/operator.h" #include "paddle/fluid/framework/var_desc.h" #include "paddle/fluid/platform/enforce.h" +#include "pybind11/pybind11.h" #include "paddle/fluid/imperative/type_defs.h" diff --git a/paddle/fluid/imperative/tracer.h b/paddle/fluid/imperative/tracer.h index f225d8abe..664cb5ec1 100644 --- a/paddle/fluid/imperative/tracer.h +++ b/paddle/fluid/imperative/tracer.h @@ -14,7 +14,6 @@ #pragma once -#include #include #include @@ -40,10 +39,11 @@ class Tracer { virtual ~Tracer() {} - void Trace(OpBase* op, - const std::map>& inputs, - const std::map>& outputs, - framework::BlockDesc* block, const bool stop_gradient = false); + void Trace( + OpBase* op, + const std::map>& inputs, // NOLINT + const std::map>& outputs, // NOLINT + framework::BlockDesc* block, const bool stop_gradient = false); std::vector PyTrace(OpBase* op, const std::vector& inputs, bool stop_gradient = false); -- GitLab