Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
ae821e5e
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
87
Star
4655
Fork
641
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
5
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VisualDL
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
5
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae821e5e
编写于
1月 10, 2018
作者:
Q
Qiao Longfei
提交者:
GitHub
1月 10, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix glog problem (#81)
上级
f7d55bc8
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
23 addition
and
16 deletion
+23
-16
CMakeLists.txt
CMakeLists.txt
+5
-3
visualdl/logic/CMakeLists.txt
visualdl/logic/CMakeLists.txt
+8
-3
visualdl/logic/histogram.h
visualdl/logic/histogram.h
+1
-1
visualdl/logic/im.cc
visualdl/logic/im.cc
+1
-1
visualdl/logic/im.h
visualdl/logic/im.h
+1
-1
visualdl/storage/storage.h
visualdl/storage/storage.h
+1
-1
visualdl/storage/tablet.h
visualdl/storage/tablet.h
+1
-1
visualdl/utils/concurrency.h
visualdl/utils/concurrency.h
+1
-1
visualdl/utils/filesystem.h
visualdl/utils/filesystem.h
+1
-1
visualdl/utils/image.h
visualdl/utils/image.h
+1
-1
visualdl/utils/logging.h
visualdl/utils/logging.h
+1
-1
visualdl/utils/test_concurrency.cc
visualdl/utils/test_concurrency.cc
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
ae821e5e
...
...
@@ -21,8 +21,10 @@ option(ON_RELEASE "RELEASE mode" ON)
include
(
external/zlib
)
# download, build, install zlib
include
(
external/gflags
)
# download, build, install gflags
include
(
external/glog
)
# download, build, install glog
if
(
NOT ON_RELEASE
)
include
(
external/gflags
)
# download, build, install gflags
include
(
external/glog
)
# download, build, install glog
endif
(
NOT ON_RELEASE
)
include
(
external/gtest
)
# download, build, install gtest
include
(
external/eigen
)
# download eigen
include
(
external/pybind11
)
# download pybind11
...
...
@@ -32,7 +34,7 @@ include(external/python) # find python and set path
if
(
NOT ON_RELEASE
)
message
(
STATUS
"build on debug mode"
)
add_
compile_op
tions
(
-DVISUALDL_WITH_GLOG
)
add_
defini
tions
(
-DVISUALDL_WITH_GLOG
)
endif
(
NOT ON_RELEASE
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
)
...
...
visualdl/logic/CMakeLists.txt
浏览文件 @
ae821e5e
add_library
(
im
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/im.cc
)
add_library
(
sdk
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/sdk.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/utils/image.h
)
add_dependencies
(
im storage_proto
)
add_dependencies
(
sdk entry storage storage_proto
)
add_dependencies
(
sdk entry storage storage_proto
eigen3
)
## pybind
add_library
(
core SHARED
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/pybind.cc
)
add_dependencies
(
core pybind python im entry tablet storage sdk protobuf glog eigen3
)
target_link_libraries
(
core PRIVATE pybind entry python im tablet storage sdk protobuf glog
)
if
(
NOT ON_RELEASE
)
add_dependencies
(
core pybind python im entry tablet storage sdk protobuf glog eigen3
)
target_link_libraries
(
core PRIVATE pybind entry python im tablet storage sdk protobuf glog
)
else
()
add_dependencies
(
core pybind python im entry tablet storage sdk protobuf eigen3
)
target_link_libraries
(
core PRIVATE pybind entry python im tablet storage sdk protobuf
)
endif
()
set_target_properties
(
core PROPERTIES PREFIX
""
SUFFIX
".so"
)
visualdl/logic/histogram.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_LOGIC_HISTOGRAM_H
#define VISUALDL_LOGIC_HISTOGRAM_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <cstdlib>
#include <limits>
#include <vector>
...
...
visualdl/logic/im.cc
浏览文件 @
ae821e5e
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <ctime>
#include "visualdl/logic/im.h"
...
...
visualdl/logic/im.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_LOGIC_IM_H
#define VISUALDL_LOGIC_IM_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <memory>
#include <mutex>
#include <string>
...
...
visualdl/storage/storage.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_STORAGE_STORAGE_H
#define VISUALDL_STORAGE_STORAGE_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <algorithm>
#include <set>
#include <vector>
...
...
visualdl/storage/tablet.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_TABLET_H
#define VISUALDL_TABLET_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include "visualdl/logic/im.h"
#include "visualdl/storage/record.h"
...
...
visualdl/utils/concurrency.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_UTILS_CONCURRENCY_H
#define VISUALDL_UTILS_CONCURRENCY_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <chrono>
#include <memory>
#include <thread>
...
...
visualdl/utils/filesystem.h
浏览文件 @
ae821e5e
...
...
@@ -44,7 +44,7 @@ bool DeSerializeFromFile(T* proto, const std::string& path) {
}
static
void
TryMkdir
(
const
std
::
string
&
dir
)
{
VLOG
(
1
)
<<
"try to mkdir "
<<
dir
;
//
VLOG(1) << "try to mkdir " << dir;
struct
stat
st
=
{
0
};
if
(
stat
(
dir
.
c_str
(),
&
st
)
==
-
1
)
{
::
mkdir
(
dir
.
c_str
(),
0700
);
...
...
visualdl/utils/image.h
浏览文件 @
ae821e5e
#ifndef VISUALDL_UTILS_IMAGE_H
#define VISUALDL_UTILS_IMAGE_H
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <Eigen/Core>
#include <unsupported/Eigen/CXX11/Tensor>
...
...
visualdl/utils/logging.h
浏览文件 @
ae821e5e
...
...
@@ -8,7 +8,7 @@
#include <string>
#if defined(VISUALDL_WITH_GLOG)
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#endif
namespace
visualdl
{
...
...
visualdl/utils/test_concurrency.cc
浏览文件 @
ae821e5e
#include "visualdl/utils/concurrency.h"
#include
<glog/logging.h>
#include
"visualdl/utils/logging.h"
#include <gtest/gtest.h>
namespace
visualdl
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录