Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
75681c0a
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
75681c0a
编写于
9月 02, 2018
作者:
D
dzhwinter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch to 9.2
上级
5c2637eb
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
17 addition
and
13 deletion
+17
-13
cmake/cuda.cmake
cmake/cuda.cmake
+1
-1
cmake/flags.cmake
cmake/flags.cmake
+2
-2
paddle/fluid/framework/eigen.h
paddle/fluid/framework/eigen.h
+1
-0
paddle/fluid/framework/ir/node.cc
paddle/fluid/framework/ir/node.cc
+1
-1
paddle/fluid/framework/op_registry.h
paddle/fluid/framework/op_registry.h
+4
-0
paddle/fluid/framework/tensor.h
paddle/fluid/framework/tensor.h
+4
-0
paddle/fluid/framework/tensor_util.h
paddle/fluid/framework/tensor_util.h
+2
-2
paddle/fluid/inference/api/helper.h
paddle/fluid/inference/api/helper.h
+0
-1
paddle/fluid/operators/accuracy_op.h
paddle/fluid/operators/accuracy_op.h
+1
-0
paddle/fluid/operators/cast_op.h
paddle/fluid/operators/cast_op.h
+1
-6
未找到文件。
cmake/cuda.cmake
浏览文件 @
75681c0a
...
...
@@ -169,9 +169,9 @@ set(CUDA_PROPAGATE_HOST_FLAGS OFF)
# Release/Debug flags set by cmake. Such as -O3 -g -DNDEBUG etc.
# So, don't set these flags here.
#list(APPEND CUDA_NVCC_FLAGS "-std=c++14")
if
(
NOT WIN32
)
# windows msvc2015 support c++11 natively.
# -std=c++11 -fPIC not recoginize by msvc, -Xcompiler will be added by cmake.
list
(
APPEND CUDA_NVCC_FLAGS
"-std=c++11"
)
list
(
APPEND CUDA_NVCC_FLAGS
"-Xcompiler -fPIC"
)
endif
(
NOT WIN32
)
...
...
cmake/flags.cmake
浏览文件 @
75681c0a
...
...
@@ -136,7 +136,7 @@ else(NOT WIN32)
set
(
COMMON_FLAGS
"/w"
)
#disable all warnings
set
(
GPU_COMMON_FLAGS
/
w
)
#disable all warnings
-
w
)
#disable all warnings
endif
(
NOT WIN32
)
...
...
@@ -160,7 +160,7 @@ if(UNIX AND NOT APPLE)
set
(
LINUX TRUE
)
endif
(
UNIX AND NOT APPLE
)
set
(
GPU_COMMON_FLAGS -std=c++11
${
GPU_COMMON_FLAGS
}
)
foreach
(
flag
${
COMMON_FLAGS
}
)
safe_set_cflag
(
CMAKE_C_FLAGS
${
flag
}
)
safe_set_cxxflag
(
CMAKE_CXX_FLAGS
${
flag
}
)
...
...
paddle/fluid/framework/eigen.h
浏览文件 @
75681c0a
...
...
@@ -17,6 +17,7 @@ limitations under the License. */
#define GLOG_NO_ABBREVIATED_SEVERITIES
#include "paddle/fluid/framework/tensor.h"
#include <math_constants.h>
#include "unsupported/Eigen/CXX11/Tensor"
namespace
paddle
{
...
...
paddle/fluid/framework/ir/node.cc
浏览文件 @
75681c0a
...
...
@@ -18,7 +18,7 @@ namespace paddle {
namespace
framework
{
namespace
ir
{
c
onstexpr
c
har
Node
::
kControlDepVarName
[];
char
Node
::
kControlDepVarName
[];
int
Node
::
count_
=
0
;
}
// namespace ir
}
// namespace framework
...
...
paddle/fluid/framework/op_registry.h
浏览文件 @
75681c0a
...
...
@@ -23,6 +23,10 @@ limitations under the License. */
#include <unordered_map>
#include <unordered_set>
#if defined(_WIN32)
#define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h
#endif
#include "glog/logging.h" // For VLOG()
#include "paddle/fluid/framework/attribute.h"
#include "paddle/fluid/framework/details/op_registry.h"
...
...
paddle/fluid/framework/tensor.h
浏览文件 @
75681c0a
...
...
@@ -20,6 +20,10 @@ limitations under the License. */
#include <typeindex>
#include <vector>
#if defined(_WIN32)
#define GLOG_NO_ABBREVIATED_SEVERITIES // msvc conflict logging with windows.h
#endif
#include "paddle/fluid/framework/data_layout.h"
#include "paddle/fluid/framework/ddim.h"
#include "paddle/fluid/memory/memory.h"
...
...
paddle/fluid/framework/tensor_util.h
浏览文件 @
75681c0a
...
...
@@ -57,8 +57,8 @@ void TensorToVector(const Tensor& src, const platform::DeviceContext& ctx,
template
<
typename
T
>
void
TesnorToVector
(
const
Tensor
&
src
,
std
::
vector
<
T
>*
dst
);
//
bool TensorContainsNAN(const framework::Tensor& tensor);
//
bool TensorContainsInf(const framework::Tensor& tensor);
bool
TensorContainsNAN
(
const
framework
::
Tensor
&
tensor
);
bool
TensorContainsInf
(
const
framework
::
Tensor
&
tensor
);
void
TensorToStream
(
std
::
ostream
&
os
,
const
Tensor
&
tensor
,
const
platform
::
DeviceContext
&
dev_ctx
);
...
...
paddle/fluid/inference/api/helper.h
浏览文件 @
75681c0a
...
...
@@ -14,7 +14,6 @@
#pragma once
#include <sys/time.h>
#include <algorithm>
#include <numeric>
#include <sstream>
...
...
paddle/fluid/operators/accuracy_op.h
浏览文件 @
75681c0a
...
...
@@ -14,6 +14,7 @@ limitations under the License. */
#pragma once
#include <algorithm>
#include "paddle/fluid/framework/op_registry.h"
namespace
paddle
{
...
...
paddle/fluid/operators/cast_op.h
浏览文件 @
75681c0a
...
...
@@ -54,17 +54,12 @@ class CastOpKernel : public framework::OpKernel<InT> {
void
Compute
(
const
framework
::
ExecutionContext
&
context
)
const
override
{
auto
*
in
=
context
.
Input
<
framework
::
Tensor
>
(
"X"
);
auto
*
out
=
context
.
Output
<
framework
::
Tensor
>
(
"Out"
);
#if !defined(_MSC_VER)
framework
::
VisitDataType
(
static_cast
<
framework
::
proto
::
VarType
::
Type
>
(
context
.
Attr
<
int
>
(
"out_dtype"
)),
CastOpFunctor
<
DeviceContext
,
InT
>
(
in
,
out
,
context
.
template
device_context
<
DeviceContext
>()));
#else
auto
type
=
static_cast
<
framework
::
proto
::
VarType
::
Type
>
(
context
.
Attr
<
int
>
(
"out_dtype"
));
trans
#endif // msvc
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录