Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
VisualDL
提交
f1be2fa0
V
VisualDL
项目概览
PaddlePaddle
/
VisualDL
大约 1 年 前同步成功
通知
88
Star
4655
Fork
642
代码
文件
提交
分支
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看板
未验证
提交
f1be2fa0
编写于
12月 12, 2017
作者:
Y
Yan Chunwei
提交者:
GitHub
12月 12, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #49 from ChunweiYan/feature/mv_backend_out
上级
7ff1db0c
70c808c3
变更
26
隐藏空白更改
内联
并排
Showing
26 changed file
with
66 addition
and
34 deletion
+66
-34
.travis.yml
.travis.yml
+3
-1
CMakeLists.txt
CMakeLists.txt
+15
-9
tests.sh
tests.sh
+13
-0
visualdl/logic/CMakeLists.txt
visualdl/logic/CMakeLists.txt
+9
-0
visualdl/logic/im.cc
visualdl/logic/im.cc
+1
-1
visualdl/logic/im.h
visualdl/logic/im.h
+4
-4
visualdl/logic/im_test.cc
visualdl/logic/im_test.cc
+1
-1
visualdl/logic/pybind.cc
visualdl/logic/pybind.cc
+1
-1
visualdl/logic/sdk.cc
visualdl/logic/sdk.cc
+2
-1
visualdl/logic/sdk.h
visualdl/logic/sdk.h
+3
-3
visualdl/python/__init__.py
visualdl/python/__init__.py
+0
-0
visualdl/python/summary.py
visualdl/python/summary.py
+0
-0
visualdl/python/test_read_service.py
visualdl/python/test_read_service.py
+0
-0
visualdl/python/test_summary.py
visualdl/python/test_summary.py
+0
-0
visualdl/python/test_write_service.py
visualdl/python/test_write_service.py
+0
-0
visualdl/storage/CMakeLists.txt
visualdl/storage/CMakeLists.txt
+0
-0
visualdl/storage/storage.cc
visualdl/storage/storage.cc
+3
-3
visualdl/storage/storage.h
visualdl/storage/storage.h
+1
-1
visualdl/storage/storage.proto
visualdl/storage/storage.proto
+0
-0
visualdl/storage/storage_test.cc
visualdl/storage/storage_test.cc
+1
-1
visualdl/test.cc
visualdl/test.cc
+0
-0
visualdl/test.py
visualdl/test.py
+0
-0
visualdl/utils/concurrency.h
visualdl/utils/concurrency.h
+2
-2
visualdl/utils/filesystem.h
visualdl/utils/filesystem.h
+2
-2
visualdl/utils/log.h
visualdl/utils/log.h
+3
-2
visualdl/utils/test_concurrency.cc
visualdl/utils/test_concurrency.cc
+2
-2
未找到文件。
.travis.yml
浏览文件 @
f1be2fa0
...
@@ -3,7 +3,6 @@ cache:
...
@@ -3,7 +3,6 @@ cache:
directories
:
directories
:
-
$HOME/.ccache
-
$HOME/.ccache
-
$HOME/.cache/pip
-
$HOME/.cache/pip
-
$TRAVIS_BUILD_DIR/build/third_party
sudo
:
required
sudo
:
required
dist
:
trusty
dist
:
trusty
os
:
os
:
...
@@ -20,6 +19,9 @@ addons:
...
@@ -20,6 +19,9 @@ addons:
-
python-wheel
-
python-wheel
-
clang-format-3.8
-
clang-format-3.8
-
ccache
-
ccache
script
:
/bin/bash ./tests.sh
notifications
:
notifications
:
email
:
email
:
on_success
:
change
on_success
:
change
...
...
CMakeLists.txt
浏览文件 @
f1be2fa0
cmake_minimum_required
(
VERSION 3.
5
)
cmake_minimum_required
(
VERSION 3.
2
)
project
(
VisualDL
)
project
(
VisualDL
)
find_program
(
CCACHE_FOUND ccache
)
if
(
CCACHE_FOUND
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_LINK ccache
)
endif
(
CCACHE_FOUND
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_FLAGS
"-fPIC"
)
set
(
CMAKE_CXX_FLAGS
"-fPIC"
)
...
@@ -25,16 +31,16 @@ include_directories(${PROJECT_SOURCE_DIR})
...
@@ -25,16 +31,16 @@ include_directories(${PROJECT_SOURCE_DIR})
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/thirdparty/local/include
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/thirdparty/local/include
)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/visualdl/
backend/
storage
)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/visualdl/storage
)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/visualdl/
backend/
logic
)
add_subdirectory
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/visualdl/logic
)
add_executable
(
vl_test
add_executable
(
vl_test
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
storage/storage_test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/storage/storage_test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
utils/test_concurrency.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/utils/test_concurrency.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
logic/im_test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/im_test.cc
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
utils/concurrency.h
${
PROJECT_SOURCE_DIR
}
/visualdl/utils/concurrency.h
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
utils/filesystem.h
${
PROJECT_SOURCE_DIR
}
/visualdl/utils/filesystem.h
)
)
target_link_libraries
(
vl_test storage im gtest glog protobuf gflags pthread
)
target_link_libraries
(
vl_test storage im gtest glog protobuf gflags pthread
)
...
...
tests.sh
0 → 100644
浏览文件 @
f1be2fa0
#!/bin/bash
set
-ex
sudo
pip
install
numpy
#sudo apt-get install --only-upgrade cmake -y
mkdir
-p
build
cd
build
cmake ..
make
make
test
#if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then bash ./travis/run_on_pull_requests; fi
#if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./travis/run_on_non_pull_requests; fi
visualdl/
backend/
logic/CMakeLists.txt
→
visualdl/logic/CMakeLists.txt
浏览文件 @
f1be2fa0
add_library
(
sdk
${
PROJECT_SOURCE_DIR
}
/visualdl/backend/logic/sdk.cc
)
add_library
(
sdk
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/sdk.cc
)
add_library
(
im
${
PROJECT_SOURCE_DIR
}
/visualdl/backend/logic/im.cc
)
add_library
(
im
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/im.cc
)
add_dependencies
(
im storage_proto
)
add_dependencies
(
sdk storage_proto
)
## pybind
## pybind
add_library
(
core SHARED
${
PROJECT_SOURCE_DIR
}
/visualdl/
backend/
logic/pybind.cc
)
add_library
(
core SHARED
${
PROJECT_SOURCE_DIR
}
/visualdl/logic/pybind.cc
)
add_dependencies
(
core pybind python im storage sdk protobuf glog
)
add_dependencies
(
core pybind python im storage sdk protobuf glog
)
target_link_libraries
(
core PRIVATE pybind python im storage sdk protobuf glog
)
target_link_libraries
(
core PRIVATE pybind python im storage sdk protobuf glog
)
visualdl/
backend/
logic/im.cc
→
visualdl/logic/im.cc
浏览文件 @
f1be2fa0
#include <glog/logging.h>
#include <glog/logging.h>
#include <ctime>
#include <ctime>
#include "visualdl/
backend/
logic/im.h"
#include "visualdl/logic/im.h"
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
logic/im.h
→
visualdl/logic/im.h
浏览文件 @
f1be2fa0
#ifndef VISUALDL_
BACKEND_
LOGIC_IM_H
#ifndef VISUALDL_LOGIC_IM_H
#define VISUALDL_
BACKEND_
LOGIC_IM_H
#define VISUALDL_LOGIC_IM_H
#include <glog/logging.h>
#include <glog/logging.h>
#include <visualdl/backend/utils/concurrency.h>
#include <memory>
#include <memory>
#include <string>
#include <string>
#include "visualdl/backend/storage/storage.h"
#include "visualdl/storage/storage.h"
#include "visualdl/utils/concurrency.h"
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
logic/im_test.cc
→
visualdl/logic/im_test.cc
浏览文件 @
f1be2fa0
#include "visualdl/
backend/
logic/im.h"
#include "visualdl/logic/im.h"
#include "gtest/gtest.h"
#include "gtest/gtest.h"
...
...
visualdl/
backend/
logic/pybind.cc
→
visualdl/logic/pybind.cc
浏览文件 @
f1be2fa0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include <pybind11/pybind11.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl.h>
#include "visualdl/
backend/
logic/sdk.h"
#include "visualdl/logic/sdk.h"
namespace
py
=
pybind11
;
namespace
py
=
pybind11
;
namespace
vs
=
visualdl
;
namespace
vs
=
visualdl
;
...
...
visualdl/
backend/
logic/sdk.cc
→
visualdl/logic/sdk.cc
浏览文件 @
f1be2fa0
#include "visualdl/backend/logic/sdk.h"
#include "visualdl/logic/sdk.h"
#include <google/protobuf/text_format.h>
#include <google/protobuf/text_format.h>
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
logic/sdk.h
→
visualdl/logic/sdk.h
浏览文件 @
f1be2fa0
#ifndef VISUALDL_
BACKEND_
LOGIC_SDK_H
#ifndef VISUALDL_LOGIC_SDK_H
#define VISUALDL_
BACKEND_
LOGIC_SDK_H
#define VISUALDL_LOGIC_SDK_H
#include <glog/logging.h>
#include <glog/logging.h>
#include <time.h>
#include <time.h>
#include <map>
#include <map>
#include "visualdl/
backend/
logic/im.h"
#include "visualdl/logic/im.h"
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
python/__init__.py
→
visualdl/python/__init__.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
python/summary.py
→
visualdl/python/summary.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
python/test_read_service.py
→
visualdl/python/test_read_service.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
python/test_summary.py
→
visualdl/python/test_summary.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
python/test_write_service.py
→
visualdl/python/test_write_service.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
storage/CMakeLists.txt
→
visualdl/storage/CMakeLists.txt
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
storage/storage.cc
→
visualdl/storage/storage.cc
浏览文件 @
f1be2fa0
#include <glog/logging.h>
#include <glog/logging.h>
#include <visualdl/backend/utils/concurrency.h>
#include <fstream>
#include <fstream>
#include "visualdl/backend/storage/storage.h"
#include "visualdl/storage/storage.h"
#include "visualdl/backend/utils/filesystem.h"
#include "visualdl/utils/concurrency.h"
#include "visualdl/utils/filesystem.h"
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
storage/storage.h
→
visualdl/storage/storage.h
浏览文件 @
f1be2fa0
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <map>
#include <map>
#include <string>
#include <string>
#include "visualdl/
backend/
storage/storage.pb.h"
#include "visualdl/storage/storage.pb.h"
namespace
visualdl
{
namespace
visualdl
{
...
...
visualdl/
backend/
storage/storage.proto
→
visualdl/storage/storage.proto
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
storage/storage_test.cc
→
visualdl/storage/storage_test.cc
浏览文件 @
f1be2fa0
#include "visualdl/
backend/
storage/storage.h"
#include "visualdl/storage/storage.h"
#include <glog/logging.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
...
...
visualdl/
backend/
test.cc
→
visualdl/test.cc
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
test.py
→
visualdl/test.py
浏览文件 @
f1be2fa0
文件已移动
visualdl/
backend/
utils/concurrency.h
→
visualdl/utils/concurrency.h
浏览文件 @
f1be2fa0
#ifndef VISUALDL_
BACKEND_
UTILS_CONCURRENCY_H
#ifndef VISUALDL_UTILS_CONCURRENCY_H
#define VISUALDL_
BACKEND_
UTILS_CONCURRENCY_H
#define VISUALDL_UTILS_CONCURRENCY_H
#include <glog/logging.h>
#include <glog/logging.h>
#include <chrono>
#include <chrono>
...
...
visualdl/
backend/
utils/filesystem.h
→
visualdl/utils/filesystem.h
浏览文件 @
f1be2fa0
#ifndef VISUALDL_
BACKEND_
UTILS_FILESYSTEM_H
#ifndef VISUALDL_UTILS_FILESYSTEM_H
#define VISUALDL_
BACKEND_
UTILS_FILESYSTEM_H
#define VISUALDL_UTILS_FILESYSTEM_H
#include <google/protobuf/text_format.h>
#include <google/protobuf/text_format.h>
#include <sys/stat.h>
#include <sys/stat.h>
...
...
visualdl/
backend/
utils/log.h
→
visualdl/utils/log.h
浏览文件 @
f1be2fa0
#ifndef VISUALDL_
BACKEND_
UTILS_LOG_H
#ifndef VISUALDL_UTILS_LOG_H
#define VISUALDL_
BACKEND_
UTILS_LOG_H
#define VISUALDL_UTILS_LOG_H
#include <stdexcept>
#include <stdexcept>
namespace
visualdl
{
namespace
visualdl
{
namespace
log
{
namespace
log
{
...
...
visualdl/
backend/
utils/test_concurrency.cc
→
visualdl/utils/test_concurrency.cc
浏览文件 @
f1be2fa0
#include "visualdl/
backend/
utils/concurrency.h"
#include "visualdl/utils/concurrency.h"
#include <glog/logging.h>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
...
@@ -16,4 +16,4 @@ TEST(concurrency, test) {
...
@@ -16,4 +16,4 @@ TEST(concurrency, test) {
cc
::
PeriodExector
::
Global
()(
std
::
move
(
task
),
200
);
cc
::
PeriodExector
::
Global
()(
std
::
move
(
task
),
200
);
}
}
}
// namespace visualdl
}
// namespace visualdl
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录