Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
acefdeb7
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
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看板
未验证
提交
acefdeb7
编写于
5月 08, 2023
作者:
C
co63oc
提交者:
GitHub
5月 08, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos, test=document_fix (#53540)
上级
a2991538
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
paddle/phi/backends/device_base.cc
paddle/phi/backends/device_base.cc
+1
-1
paddle/phi/core/compat/get_kerneltype_forvar_utils.h
paddle/phi/core/compat/get_kerneltype_forvar_utils.h
+2
-2
paddle/phi/core/compat/op_utils.h
paddle/phi/core/compat/op_utils.h
+1
-1
paddle/phi/kernels/funcs/blas/blas.h
paddle/phi/kernels/funcs/blas/blas.h
+1
-1
paddle/phi/kernels/funcs/blas/blaslt_impl.cu.h
paddle/phi/kernels/funcs/blas/blaslt_impl.cu.h
+3
-3
未找到文件。
paddle/phi/backends/device_base.cc
浏览文件 @
acefdeb7
...
...
@@ -124,7 +124,7 @@ bool DeviceInterface::QueryEvent(size_t dev_id, const event::Event* event) {
return
true
;
}
// mem
e
ry manage
// mem
o
ry manage
void
DeviceInterface
::
MemoryCopyH2D
(
size_t
dev_id
,
void
*
dst
,
const
void
*
src
,
...
...
paddle/phi/core/compat/get_kerneltype_forvar_utils.h
浏览文件 @
acefdeb7
...
...
@@ -22,7 +22,7 @@ class KernelKey;
class
DenseTensor
;
/**
* Note: GetKernelTypeForVarContext is currently designed for oneDNN kernel when
* the related mem
e
ber function 'GetKernelTypeForVar' is special. It is
* the related member function 'GetKernelTypeForVar' is special. It is
* possible to leverage to other vendor libraries in the future.
*/
class
GetKernelTypeForVarContext
{
...
...
@@ -47,7 +47,7 @@ class GetKernelTypeForVarContext {
private:
const
KernelKey
*
kernel_key_
;
// not owned
// Use AttributeMap in namespace 'phi' to avoid depending 'f
uil
d'
// Use AttributeMap in namespace 'phi' to avoid depending 'f
lui
d'
const
AttributeMap
*
attrs_
;
// not owned
std
::
string
*
var_name_
;
// not owned
DenseTensor
*
tensor_
;
// not owned
...
...
paddle/phi/core/compat/op_utils.h
浏览文件 @
acefdeb7
...
...
@@ -31,7 +31,7 @@ const static std::string deprecated_kernel_name = "deprecated"; // NOLINT
const
std
::
unordered_set
<
std
::
string
>
standard_kernel_suffixs
({
"sr"
,
// SelectedRows kernel
"raw"
// fallback kernel of orig
f
inal fluid op
"raw"
// fallback kernel of original fluid op
});
/**
...
...
paddle/phi/kernels/funcs/blas/blas.h
浏览文件 @
acefdeb7
...
...
@@ -38,7 +38,7 @@ namespace funcs {
* if Mat A is [BatchSize, H, W], Mat B is [BatchSize, H, W]. It will be a
* `batch_size` times of GEMM. The batched GEMM could be faster base on the
* implementation of the blas library. The batch size could be zero. If any
* matrix of `matmul` has a batch size, the will be a batched GEMM, too. e.g.,
* matrix of `matmul` has a batch size, the
re
will be a batched GEMM, too. e.g.,
* Mat A is [BatchSize, H1, W2], and Mat B [H2, W2], The result matrix wil be
* [BatchSize, H1, W2]
*
...
...
paddle/phi/kernels/funcs/blas/blaslt_impl.cu.h
浏览文件 @
acefdeb7
...
...
@@ -39,7 +39,7 @@ namespace funcs {
// While kMatmul, kMatmulGrad, kMatmulGradWithoutBias share the same
// enum value, but if all elements for MatmulPlanner->GetKey() is same,
// no matter forward or backward, they could share the same descriptor
// cache, in that the descri
tpor is for de
cription of matmul operation.
// cache, in that the descri
ptor is for des
cription of matmul operation.
enum
MatmulFusedType
{
kMatmul
=
CUBLASLT_EPILOGUE_DEFAULT
,
kMatmulGrad
=
CUBLASLT_EPILOGUE_DEFAULT
,
...
...
@@ -216,7 +216,7 @@ struct MatmulDescriptor {
cudaDataType_t
scale_type
=
phi
::
backends
::
gpu
::
ToCudaDataType
<
MT
>
();
cublasComputeType_t
compute_type
=
GetCudaComputeType
<
T
>
();
// Create operation desc
i
riptor; see cublasLtMatmulDescAttributes_t for
// Create operation descriptor; see cublasLtMatmulDescAttributes_t for
// details about defaults; just need to set the transforms for A and B
PADDLE_ENFORCE_GPU_SUCCESS
(
dynload
::
cublasLtMatmulDescCreate
(
&
op_desc
,
compute_type
,
scale_type
));
...
...
@@ -787,7 +787,7 @@ struct LinearGradWithCublasLt : public CublasLtBase<T> {
}
};
#else
// A void structure just for successfully comp
l
ile.
// A void structure just for successfully compile.
struct
MatmulPlanner
{};
#endif // (PADDLE_WITH_CUDA) && CUDA_VERSION >= 11060
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录