Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
002f2185
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2305
Star
20932
Fork
5423
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
002f2185
编写于
4月 17, 2023
作者:
C
chenxujun
提交者:
GitHub
4月 17, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos, test=document_fix (#52937)
上级
c3417fd2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+7
-7
paddle/phi/common/data_type.h
paddle/phi/common/data_type.h
+2
-2
paddle/phi/common/thread_data_registry.h
paddle/phi/common/thread_data_registry.h
+2
-2
paddle/phi/common/transform.h
paddle/phi/common/transform.h
+3
-3
未找到文件。
paddle/phi/common/data_type.h
浏览文件 @
002f2185
...
...
@@ -39,7 +39,7 @@ enum class DataType {
BOOL
,
UINT8
,
// B
Y
te
UINT8
,
// B
y
te
INT8
,
// Char
UINT16
,
INT16
,
...
...
@@ -70,7 +70,7 @@ enum class DataType {
BFLOAT16
,
NUM_DATA_TYPES
,
// See Note [ Why we need ALL in ba
is
c kernel key member? ]
// See Note [ Why we need ALL in ba
si
c kernel key member? ]
ALL_DTYPE
=
UNDEFINED
,
};
...
...
paddle/phi/common/thread_data_registry.h
浏览文件 @
002f2185
...
...
@@ -44,7 +44,7 @@ class ThreadDataRegistry {
}
// Returns current snapshot of all threads. Make sure there is no thread
// create/dest
or
y when using it.
// create/dest
ro
y when using it.
template
<
typename
Alias
=
T
,
typename
=
std
::
enable_if_t
<
std
::
is_copy_constructible
<
Alias
>
::
value
>>
...
...
@@ -53,7 +53,7 @@ class ThreadDataRegistry {
}
// Returns current snapshot of all threads. Make sure there is no thread
// create/dest
or
y when using it.
// create/dest
ro
y when using it.
std
::
unordered_map
<
uint64_t
,
std
::
reference_wrapper
<
T
>>
GetAllThreadDataByRef
()
{
return
impl_
->
GetAllThreadDataByRef
();
...
...
paddle/phi/common/transform.h
浏览文件 @
002f2185
...
...
@@ -33,7 +33,7 @@ namespace phi {
// range defined by a pair of iterators.
//
// - The specialization for CPU calls std::transform.
// - The specialization for CUDA calls thrust::tranform.
// - The specialization for CUDA calls thrust::tran
s
form.
//
// NOTE: We need to define InputIter and OutputIter defined as
// different types, because the InputIter points op's inputs and
...
...
@@ -41,7 +41,7 @@ namespace phi {
//
// NOTE: We don't assume that InputIter to be const InputType* and
// OutputIter to be OutputType*, because we might use a iterator
// class, paddle::fluid::operators::RowwiseT
R
ansformIterator.
// class, paddle::fluid::operators::RowwiseT
r
ansformIterator.
template
<
typename
Context
>
struct
Transform
{
// The unary version.
...
...
@@ -94,7 +94,7 @@ struct Transform<phi::CPUContext> {
#if defined(__NVCC__) || defined(__HIPCC__)
// PointerToThrustDevicePtr has two spe
ic
alizations, one casts a (CUDA
// PointerToThrustDevicePtr has two spe
ci
alizations, one casts a (CUDA
// device) pointer into thrust::device_ptr, the other keeps rest types
// un-casted.
template
<
typename
T
,
bool
is_ptr
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录