提交 579e5912 编写于 作者: Y Yu Yang

Try to fix unittest error

上级 6ea5a9fd
...@@ -14,7 +14,7 @@ limitations under the License. */ ...@@ -14,7 +14,7 @@ limitations under the License. */
#ifndef HL_TIME_H_ #ifndef HL_TIME_H_
#define HL_TIME_H_ #define HL_TIME_H_
#include <cstdint>
/** /**
* @brief High resolution timer. * @brief High resolution timer.
* *
......
...@@ -15,6 +15,7 @@ limitations under the License. */ ...@@ -15,6 +15,7 @@ limitations under the License. */
#include "hl_time.h" #include "hl_time.h"
#include <stdlib.h> #include <stdlib.h>
#include <chrono> #include <chrono>
#include <cstdint>
#include <iostream> #include <iostream>
using std::chrono::high_resolution_clock; using std::chrono::high_resolution_clock;
......
...@@ -25,7 +25,6 @@ limitations under the License. */ ...@@ -25,7 +25,6 @@ limitations under the License. */
#include "Locks.h" #include "Locks.h"
#include "Logging.h" #include "Logging.h"
#include "Stat.h"
#include "ThreadLocal.h" #include "ThreadLocal.h"
namespace paddle { namespace paddle {
......
...@@ -13,6 +13,8 @@ See the License for the specific language governing permissions and ...@@ -13,6 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#pragma once #pragma once
// clang-format off
#include "paddle/utils/Util.h"
#ifndef PADDLE_NO_PYTHON #ifndef PADDLE_NO_PYTHON
// must include the following two blocks, otherwise, // must include the following two blocks, otherwise,
...@@ -33,13 +35,12 @@ limitations under the License. */ ...@@ -33,13 +35,12 @@ limitations under the License. */
#endif #endif
#include <Python.h> #include <Python.h>
#include <frameobject.h> #include <frameobject.h>
#endif #endif
#include <stdarg.h> #include <stdarg.h>
#include <map> #include <map>
#include <mutex> #include <mutex>
#include "paddle/utils/Util.h" // clang-format on
namespace paddle { namespace paddle {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册