Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
337cc2ca
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
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看板
未验证
提交
337cc2ca
编写于
4月 17, 2023
作者:
G
Galaxy1458
提交者:
GitHub
4月 17, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove some [-Wunused-paramter] warning (#52924)
上级
31fc763a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
15 addition
and
10 deletion
+15
-10
paddle/fluid/distributed/auto_parallel/utils.h
paddle/fluid/distributed/auto_parallel/utils.h
+1
-1
paddle/fluid/framework/details/op_registry.h
paddle/fluid/framework/details/op_registry.h
+2
-1
paddle/fluid/memory/allocation/allocator.h
paddle/fluid/memory/allocation/allocator.h
+3
-1
paddle/phi/common/place.h
paddle/phi/common/place.h
+4
-4
paddle/phi/common/transform.h
paddle/phi/common/transform.h
+1
-1
paddle/phi/core/kernel_utils.h
paddle/phi/core/kernel_utils.h
+3
-1
paddle/phi/core/utils/dim.h
paddle/phi/core/utils/dim.h
+1
-1
未找到文件。
paddle/fluid/distributed/auto_parallel/utils.h
浏览文件 @
337cc2ca
...
...
@@ -80,7 +80,7 @@ inline std::string str_join(std::map<std::string, bool> const& elements,
const
std
::
string
&
delimiter
=
","
)
{
std
::
string
str
;
for
(
const
auto
&
item
:
elements
)
{
str
+=
item
.
first
+
": "
+
std
::
to_string
(
item
.
second
)
+
","
;
str
+=
item
.
first
+
": "
+
std
::
to_string
(
item
.
second
)
+
delimiter
;
}
return
str
.
substr
(
0
,
str
.
size
()
-
1
);
}
...
...
paddle/fluid/framework/details/op_registry.h
浏览文件 @
337cc2ca
...
...
@@ -33,6 +33,7 @@ limitations under the License. */
#include "paddle/fluid/imperative/dygraph_grad_maker.h"
#include "paddle/fluid/imperative/type_defs.h"
#include "paddle/fluid/prim/utils/static/composite_grad_desc_maker.h"
#include "paddle/phi/core/macros.h"
namespace
paddle
{
namespace
framework
{
...
...
@@ -161,7 +162,7 @@ class OperatorRegistrarRecursive<I, false, ARGS...> {
template
<
size_t
I
,
typename
...
ARGS
>
class
OperatorRegistrarRecursive
<
I
,
true
,
ARGS
...
>
{
public:
OperatorRegistrarRecursive
(
const
char
*
op_type
,
OpInfo
*
info
)
{}
OperatorRegistrarRecursive
(
const
char
*
op_type
UNUSED
,
OpInfo
*
info
UNUSED
)
{}
};
template
<
typename
T
>
...
...
paddle/fluid/memory/allocation/allocator.h
浏览文件 @
337cc2ca
...
...
@@ -162,7 +162,9 @@ class Allocator : public phi::Allocator {
protected:
virtual
phi
::
Allocation
*
AllocateImpl
(
size_t
size
)
=
0
;
virtual
void
FreeImpl
(
phi
::
Allocation
*
allocation
);
virtual
uint64_t
ReleaseImpl
(
const
platform
::
Place
&
place
)
{
return
0
;
}
virtual
uint64_t
ReleaseImpl
(
const
platform
::
Place
&
place
UNUSED
)
{
return
0
;
}
};
inline
size_t
AlignedSize
(
size_t
size
,
size_t
alignment
)
{
...
...
paddle/phi/common/place.h
浏览文件 @
337cc2ca
...
...
@@ -18,7 +18,7 @@ limitations under the License. */
#include <unordered_map>
#include "paddle/phi/api/include/dll_decl.h"
#include "paddle/phi/core/macros.h"
namespace
paddle
{
enum
class
PlaceType
;
}
...
...
@@ -132,7 +132,7 @@ class CPUPlace : public Place {
CPUPlace
()
:
Place
(
AllocationType
::
CPU
)
{}
CPUPlace
(
const
CPUPlace
&
)
=
default
;
CPUPlace
(
const
Place
&
place
)
:
Place
(
AllocationType
::
CPU
)
{}
// NOLINT
CPUPlace
(
const
Place
&
place
UNUSED
)
:
Place
(
AllocationType
::
CPU
)
{}
// NOLINT
};
class
GPUPlace
:
public
Place
{
...
...
@@ -150,7 +150,7 @@ class GPUPinnedPlace : public Place {
GPUPinnedPlace
()
:
Place
(
AllocationType
::
GPUPINNED
)
{}
GPUPinnedPlace
(
const
GPUPinnedPlace
&
)
=
default
;
GPUPinnedPlace
(
const
Place
&
place
)
// NOLINT
GPUPinnedPlace
(
const
Place
&
place
UNUSED
)
// NOLINT
:
Place
(
AllocationType
::
GPUPINNED
)
{}
};
...
...
@@ -179,7 +179,7 @@ class NPUPinnedPlace : public Place {
NPUPinnedPlace
()
:
Place
(
AllocationType
::
NPUPINNED
)
{}
NPUPinnedPlace
(
const
NPUPinnedPlace
&
)
=
default
;
NPUPinnedPlace
(
const
Place
&
place
)
// NOLINT
NPUPinnedPlace
(
const
Place
&
place
UNUSED
)
// NOLINT
:
Place
(
AllocationType
::
NPUPINNED
)
{}
};
...
...
paddle/phi/common/transform.h
浏览文件 @
337cc2ca
...
...
@@ -82,7 +82,7 @@ struct Transform<phi::CPUContext> {
typename
InputIter2
,
typename
OutputIter
,
typename
BinaryOperation
>
void
operator
()(
const
phi
::
CPUContext
&
context
,
void
operator
()(
const
phi
::
CPUContext
&
context
UNUSED
,
InputIter1
first1
,
InputIter1
last1
,
InputIter2
first2
,
...
...
paddle/phi/core/kernel_utils.h
浏览文件 @
337cc2ca
...
...
@@ -332,7 +332,9 @@ struct KernelImpl<Return (*)(DevCtx, Args...), kernel_fn> {
template
<
typename
T
>
struct
KernelCallHelper
<
TypeTag
<
T
>>
{
template
<
int
dev_ctx_idx
,
int
in_idx
,
int
attr_idx
,
int
out_idx
>
static
void
Compute
(
KernelContext
*
ctx
,
DevCtx
dev_ctx
,
Args
&
...
args
)
{
static
void
Compute
(
KernelContext
*
ctx
UNUSED
,
DevCtx
dev_ctx
,
Args
&
...
args
)
{
static_assert
(
dev_ctx_idx
>
0
,
"Kernel should pass DeviceContext as argument."
);
return
kernel_fn
(
dev_ctx
,
args
...);
...
...
paddle/phi/core/utils/dim.h
浏览文件 @
337cc2ca
...
...
@@ -84,7 +84,7 @@ inline std::ostream& operator<<(std::ostream& os, const Dim<D>& d) {
return
os
;
}
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Dim
<
0
>&
d
)
{
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Dim
<
0
>&
d
UNUSED
)
{
return
os
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录