Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
138bdf40
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看板
未验证
提交
138bdf40
编写于
8月 29, 2023
作者:
C
cyberslack_lee
提交者:
GitHub
8月 29, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[clang-tidy] No.26,27 enable misc-unused-using-decls,misc-unused-alias-decls (#56485)
* fix * fix
上级
cc9e8699
变更
45
隐藏空白更改
内联
并排
Showing
45 changed file
with
6 addition
and
75 deletion
+6
-75
.clang-tidy
.clang-tidy
+2
-2
paddle/fluid/distributed/auto_parallel/spmd_rules/replicated_spmd_rule.cc
...tributed/auto_parallel/spmd_rules/replicated_spmd_rule.cc
+0
-2
paddle/fluid/framework/ir/graph_pattern_detector.cc
paddle/fluid/framework/ir/graph_pattern_detector.cc
+0
-3
paddle/fluid/framework/ir/memory_optimize_pass/recurrent_op_eager_deletion_pass.cc
.../memory_optimize_pass/recurrent_op_eager_deletion_pass.cc
+0
-1
paddle/fluid/inference/analysis/ir_pass_manager.cc
paddle/fluid/inference/analysis/ir_pass_manager.cc
+0
-1
paddle/fluid/inference/api/analysis_predictor.cc
paddle/fluid/inference/api/analysis_predictor.cc
+1
-1
paddle/fluid/inference/api/mkldnn_quantizer.cc
paddle/fluid/inference/api/mkldnn_quantizer.cc
+0
-1
paddle/fluid/operators/activation_op.cc
paddle/fluid/operators/activation_op.cc
+0
-1
paddle/fluid/operators/add_position_encoding_op.cc
paddle/fluid/operators/add_position_encoding_op.cc
+0
-1
paddle/fluid/operators/assign_pos_op.cc
paddle/fluid/operators/assign_pos_op.cc
+0
-1
paddle/fluid/operators/center_loss_op.cc
paddle/fluid/operators/center_loss_op.cc
+0
-1
paddle/fluid/operators/flatten_op.cu.cc
paddle/fluid/operators/flatten_op.cu.cc
+0
-1
paddle/fluid/operators/fused/fused_seqpool_cvm_op.cc
paddle/fluid/operators/fused/fused_seqpool_cvm_op.cc
+0
-1
paddle/fluid/operators/limit_by_capacity_op.cc
paddle/fluid/operators/limit_by_capacity_op.cc
+0
-1
paddle/fluid/operators/memcpy_d2h_op.cc
paddle/fluid/operators/memcpy_d2h_op.cc
+0
-1
paddle/fluid/operators/memcpy_h2d_op.cc
paddle/fluid/operators/memcpy_h2d_op.cc
+0
-1
paddle/fluid/operators/memcpy_op.cc
paddle/fluid/operators/memcpy_op.cc
+0
-1
paddle/fluid/operators/mkldnn/interpolate_mkldnn_op.cc
paddle/fluid/operators/mkldnn/interpolate_mkldnn_op.cc
+0
-4
paddle/fluid/operators/mkldnn/quantize_mkldnn_op.cc
paddle/fluid/operators/mkldnn/quantize_mkldnn_op.cc
+0
-4
paddle/fluid/operators/mkldnn/requantize_mkldnn_op.cc
paddle/fluid/operators/mkldnn/requantize_mkldnn_op.cc
+0
-1
paddle/fluid/operators/number_count_op.cc
paddle/fluid/operators/number_count_op.cc
+0
-1
paddle/fluid/operators/optimizers/adadelta_op.cc
paddle/fluid/operators/optimizers/adadelta_op.cc
+1
-1
paddle/fluid/operators/optimizers/distributed_fused_lamb_init_op.cc
...id/operators/optimizers/distributed_fused_lamb_init_op.cc
+0
-1
paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cc
...e/fluid/operators/optimizers/distributed_fused_lamb_op.cc
+0
-1
paddle/fluid/operators/p_send_op.cc
paddle/fluid/operators/p_send_op.cc
+0
-1
paddle/fluid/operators/print_op.cc
paddle/fluid/operators/print_op.cc
+0
-1
paddle/fluid/operators/pyramid_hash_op.cc
paddle/fluid/operators/pyramid_hash_op.cc
+1
-2
paddle/fluid/operators/random_crop_op.cc
paddle/fluid/operators/random_crop_op.cc
+0
-1
paddle/fluid/operators/random_routing_op.cc
paddle/fluid/operators/random_routing_op.cc
+0
-1
paddle/fluid/operators/set_value_op.cc
paddle/fluid/operators/set_value_op.cc
+0
-1
paddle/fluid/operators/string/faster_tokenizer_op.cc
paddle/fluid/operators/string/faster_tokenizer_op.cc
+0
-7
paddle/fluid/operators/sum_op.cc
paddle/fluid/operators/sum_op.cc
+0
-2
paddle/fluid/operators/transfer_layout_op.cc
paddle/fluid/operators/transfer_layout_op.cc
+0
-1
paddle/fluid/operators/var_conv_2d_op.cc
paddle/fluid/operators/var_conv_2d_op.cc
+1
-2
paddle/fluid/pybind/data_set_py.cc
paddle/fluid/pybind/data_set_py.cc
+0
-1
paddle/fluid/pybind/distributed_py.cc
paddle/fluid/pybind/distributed_py.cc
+0
-2
paddle/fluid/pybind/eager_py_layer.cc
paddle/fluid/pybind/eager_py_layer.cc
+0
-2
paddle/fluid/pybind/heter_wrapper_py.cc
paddle/fluid/pybind/heter_wrapper_py.cc
+0
-2
paddle/fluid/pybind/metrics_py.cc
paddle/fluid/pybind/metrics_py.cc
+0
-2
paddle/fluid/pybind/nccl_wrapper_py.cc
paddle/fluid/pybind/nccl_wrapper_py.cc
+0
-1
paddle/fluid/pybind/op_function_common.cc
paddle/fluid/pybind/op_function_common.cc
+0
-1
paddle/fluid/pybind/protobuf.cc
paddle/fluid/pybind/protobuf.cc
+0
-3
paddle/fluid/pybind/ps_gpu_wrapper_py.cc
paddle/fluid/pybind/ps_gpu_wrapper_py.cc
+0
-2
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
+0
-5
paddle/phi/kernels/onednn/matmul_kernel.cc
paddle/phi/kernels/onednn/matmul_kernel.cc
+0
-1
未找到文件。
.clang-tidy
浏览文件 @
138bdf40
...
...
@@ -163,8 +163,8 @@ cppcoreguidelines-c-copy-assignment-signature,
-cppcoreguidelines-slicing,
-hicpp-avoid-goto,
-hicpp-exception-baseclass,
-
misc-unused-alias-decls,
-
misc-unused-using-decls,
misc-unused-alias-decls,
misc-unused-using-decls,
modernize-avoid-bind,
modernize-avoid-c-arrays,
-modernize-deprecated-headers,
...
...
paddle/fluid/distributed/auto_parallel/spmd_rules/replicated_spmd_rule.cc
浏览文件 @
138bdf40
...
...
@@ -18,8 +18,6 @@ namespace paddle {
namespace
distributed
{
namespace
auto_parallel
{
using
phi
::
distributed
::
auto_parallel
::
str_join
;
std
::
pair
<
std
::
vector
<
TensorDistAttr
>
,
std
::
vector
<
TensorDistAttr
>>
ReplicatedSPMDRule
::
InferForward
(
const
std
::
vector
<
DistTensorSpec
>&
input_specs
,
const
paddle
::
framework
::
AttributeMap
&
attrs
)
{
...
...
paddle/fluid/framework/ir/graph_pattern_detector.cc
浏览文件 @
138bdf40
...
...
@@ -24,9 +24,6 @@ namespace paddle {
namespace
framework
{
namespace
ir
{
using
string
::
PrettyLog
;
using
string
::
Style
;
size_t
PDPattern
::
id_
=
0UL
;
#ifdef PADDLE_WITH_TENSORRT
...
...
paddle/fluid/framework/ir/memory_optimize_pass/recurrent_op_eager_deletion_pass.cc
浏览文件 @
138bdf40
...
...
@@ -27,7 +27,6 @@ namespace framework {
namespace
ir
{
using
paddle
::
operators
::
OpAndGradOpPair
;
using
paddle
::
operators
::
OpVariant
;
using
paddle
::
operators
::
OpVariantSet
;
void
RecurrentOpEagerDeletionPass
::
ApplyImpl
(
Graph
*
graph
)
const
{
...
...
paddle/fluid/inference/analysis/ir_pass_manager.cc
浏览文件 @
138bdf40
...
...
@@ -33,7 +33,6 @@
namespace
paddle
{
namespace
inference
{
namespace
analysis
{
using
string
::
PrettyLog
;
using
string
::
PrettyLogEndl
;
using
string
::
Style
;
...
...
paddle/fluid/inference/api/analysis_predictor.cc
浏览文件 @
138bdf40
...
...
@@ -154,7 +154,6 @@ void UpdatePrivateDeviceContext(InferGPUContext *gpu_context,
#endif
}
// namespace
using
inference
::
Singleton
;
#ifdef PADDLE_WITH_TENSORRT
using
inference
::
tensorrt
::
TRTCalibratorEngine
;
using
inference
::
tensorrt
::
TRTCalibratorEngineManager
;
...
...
@@ -2527,6 +2526,7 @@ void AnalysisPredictor::ClearIntermediateTensor() {
}
#ifdef PADDLE_WITH_TENSORRT
using
inference
::
Singleton
;
bool
AnalysisPredictor
::
SaveTrtCalibToDisk
()
{
PADDLE_ENFORCE_EQ
(
config_
.
tensorrt_engine_enabled
(),
true
,
...
...
paddle/fluid/inference/api/mkldnn_quantizer.cc
浏览文件 @
138bdf40
...
...
@@ -37,7 +37,6 @@ namespace paddle {
using
framework
::
Variable
;
using
framework
::
ir
::
Graph
;
using
phi
::
CPUPlace
;
using
ConstEigenVectorArrayMap
=
Eigen
::
Map
<
const
Eigen
::
Array
<
float
,
Eigen
::
Dynamic
,
1
>>
;
using
EigenMatrixDoubleArray
=
...
...
paddle/fluid/operators/activation_op.cc
浏览文件 @
138bdf40
...
...
@@ -338,7 +338,6 @@ DEFINE_ACTIVATION_CPU_KERNEL(SoftRelu, SoftReluFunctor, SoftReluGradFunctor)
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
#define REGISTER_ACTIVATION_OP(KERNEL_TYPE, OP_NAME, functor, grad_functor) \
REGISTER_OPERATOR( \
...
...
paddle/fluid/operators/add_position_encoding_op.cc
浏览文件 @
138bdf40
...
...
@@ -111,7 +111,6 @@ class AddPositionEncodingGradOpMaker : public framework::SingleGradOpMaker<T> {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plt
=
paddle
::
platform
;
REGISTER_OPERATOR
(
add_position_encoding
,
...
...
paddle/fluid/operators/assign_pos_op.cc
浏览文件 @
138bdf40
...
...
@@ -75,7 +75,6 @@ specially counter orderingly.
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_WITHOUT_GRADIENT
(
assign_pos
,
ops
::
AssignPosOp
,
...
...
paddle/fluid/operators/center_loss_op.cc
浏览文件 @
138bdf40
...
...
@@ -145,7 +145,6 @@ DECLARE_NO_NEED_BUFFER_VARS_INFERER(CenterLossGradNoNeedBufVarsInferer, "X");
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OPERATOR
(
center_loss
,
ops
::
CenterLossOp
,
...
...
paddle/fluid/operators/flatten_op.cu.cc
浏览文件 @
138bdf40
...
...
@@ -15,7 +15,6 @@ limitations under the License. */
#include "paddle/fluid/operators/flatten_op.h"
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_CUDA_KERNEL
(
flatten
,
ops
::
FlattenKernel
<
phi
::
GPUContext
,
float
>
,
...
...
paddle/fluid/operators/fused/fused_seqpool_cvm_op.cc
浏览文件 @
138bdf40
...
...
@@ -281,7 +281,6 @@ class FusedSeqpoolCVMGradOpMaker : public framework::SingleGradOpMaker<T> {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OPERATOR
(
fused_seqpool_cvm
,
ops
::
FusedSeqpoolCVMOp
,
...
...
paddle/fluid/operators/limit_by_capacity_op.cc
浏览文件 @
138bdf40
...
...
@@ -81,7 +81,6 @@ class LimitByCapacityOpMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_WITHOUT_GRADIENT
(
limit_by_capacity
,
ops
::
LimitByCapacityOp
,
...
...
paddle/fluid/operators/memcpy_d2h_op.cc
浏览文件 @
138bdf40
...
...
@@ -106,7 +106,6 @@ raise error if the type is not listed above.
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
memcpy_d2h
,
MemcpyD2HInferShapeFunctor
,
...
...
paddle/fluid/operators/memcpy_h2d_op.cc
浏览文件 @
138bdf40
...
...
@@ -108,7 +108,6 @@ raise error if the type is not listed above.
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
memcpy_h2d
,
MemcpyH2DInferShapeFunctor
,
...
...
paddle/fluid/operators/memcpy_op.cc
浏览文件 @
138bdf40
...
...
@@ -127,7 +127,6 @@ raise error if the type is not listed above.
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
memcpy
,
MemcpyInferShapeFunctor
,
...
...
paddle/fluid/operators/mkldnn/interpolate_mkldnn_op.cc
浏览文件 @
138bdf40
...
...
@@ -19,11 +19,7 @@ namespace paddle {
namespace
operators
{
using
dnnl
::
memory
;
using
dnnl
::
primitive
;
using
dnnl
::
reorder
;
using
dnnl
::
resampling_forward
;
using
dnnl
::
stream
;
using
phi
::
DataLayout
;
using
OneDNNMemoryFormat
=
dnnl
::
memory
::
format_tag
;
template
<
typename
T
=
float
>
...
...
paddle/fluid/operators/mkldnn/quantize_mkldnn_op.cc
浏览文件 @
138bdf40
...
...
@@ -23,10 +23,6 @@ namespace paddle {
namespace
operators
{
using
dnnl
::
memory
;
using
dnnl
::
primitive
;
using
dnnl
::
reorder
;
using
dnnl
::
stream
;
using
phi
::
DataLayout
;
template
<
typename
T
>
class
QuantOpKernel
:
public
framework
::
OpKernel
<
T
>
{
...
...
paddle/fluid/operators/mkldnn/requantize_mkldnn_op.cc
浏览文件 @
138bdf40
...
...
@@ -23,7 +23,6 @@ namespace paddle {
namespace
operators
{
using
dnnl
::
memory
;
using
dnnl
::
reorder
;
namespace
{
...
...
paddle/fluid/operators/number_count_op.cc
浏览文件 @
138bdf40
...
...
@@ -56,7 +56,6 @@ class NumberCountOpMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_WITHOUT_GRADIENT
(
number_count
,
ops
::
NumberCountOp
,
...
...
paddle/fluid/operators/optimizers/adadelta_op.cc
浏览文件 @
138bdf40
...
...
@@ -89,7 +89,7 @@ $$
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
ops
=
paddle
::
operators
;
DECLARE_INFER_SHAPE_FUNCTOR
(
adadelta
,
AdadeltaInferMetaFunctor
,
PD_INFER_META
(
phi
::
AdadeltaInferMeta
));
...
...
paddle/fluid/operators/optimizers/distributed_fused_lamb_init_op.cc
浏览文件 @
138bdf40
...
...
@@ -112,7 +112,6 @@ class DistributedFusedLambInitOpMaker
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OP_WITHOUT_GRADIENT
(
distributed_fused_lamb_init
,
ops
::
DistributedFusedLambInitOp
,
...
...
paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cc
浏览文件 @
138bdf40
...
...
@@ -165,7 +165,6 @@ class DistributedFusedLambOpMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace operators
}
// namespace paddle
namespace
plat
=
paddle
::
platform
;
namespace
ops
=
paddle
::
operators
;
REGISTER_OP_WITHOUT_GRADIENT
(
distributed_fused_lamb
,
ops
::
DistributedFusedLambOp
,
...
...
paddle/fluid/operators/p_send_op.cc
浏览文件 @
138bdf40
...
...
@@ -65,7 +65,6 @@ class PSendArrayOpMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
p_send
,
PSendInferShapeFunctor
,
...
...
paddle/fluid/operators/print_op.cc
浏览文件 @
138bdf40
...
...
@@ -34,7 +34,6 @@ class OpBase;
namespace
paddle
{
namespace
operators
{
using
framework
::
GradVarName
;
#define CLOG std::cout
...
...
paddle/fluid/operators/pyramid_hash_op.cc
浏览文件 @
138bdf40
...
...
@@ -575,8 +575,7 @@ class CPUPyramidHashOPGradKernel : public framework::OpKernel<T> {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plt
=
paddle
::
platform
;
namespace
frm
=
paddle
::
framework
;
REGISTER_OPERATOR
(
pyramid_hash
,
ops
::
PyramidHashOP
,
ops
::
PyramidHashOpMaker
,
...
...
paddle/fluid/operators/random_crop_op.cc
浏览文件 @
138bdf40
...
...
@@ -88,7 +88,6 @@ class RandomCropOpMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
f
=
paddle
::
framework
;
REGISTER_OPERATOR
(
random_crop
,
ops
::
RandomCropOp
,
...
...
paddle/fluid/operators/random_routing_op.cc
浏览文件 @
138bdf40
...
...
@@ -88,7 +88,6 @@ DECLARE_INPLACE_OP_INFERER(RandomRoutingInplaceInferer, {"TopK_Idx", "Out"});
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
REGISTER_OPERATOR
(
random_routing
,
...
...
paddle/fluid/operators/set_value_op.cc
浏览文件 @
138bdf40
...
...
@@ -236,7 +236,6 @@ DECLARE_INPLACE_OP_INFERER(SetValueOpInplaceInferer, {"Input", "Out"});
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
set_value
,
SetValueInferShapeFunctor
,
...
...
paddle/fluid/operators/string/faster_tokenizer_op.cc
浏览文件 @
138bdf40
...
...
@@ -29,15 +29,8 @@ limitations under the License. */
namespace
paddle
{
namespace
operators
{
using
std
::
bad_cast
;
using
std
::
codecvt_utf8
;
using
std
::
endl
;
using
std
::
exception
;
using
std
::
ifstream
;
using
std
::
int64_t
;
using
std
::
min
;
using
std
::
runtime_error
;
using
std
::
shared_ptr
;
using
std
::
size_t
;
using
std
::
string
;
using
std
::
unordered_map
;
...
...
paddle/fluid/operators/sum_op.cc
浏览文件 @
138bdf40
...
...
@@ -243,8 +243,6 @@ DECLARE_INPLACE_OP_INFERER(SumInplaceInferer, {"X", "Out"});
}
// namespace operators
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
ops
=
paddle
::
operators
;
DECLARE_INFER_SHAPE_FUNCTOR
(
sum
,
AddNInferShapeFunctor
,
...
...
paddle/fluid/operators/transfer_layout_op.cc
浏览文件 @
138bdf40
...
...
@@ -118,7 +118,6 @@ class TransferLayoutOpProtoMaker : public framework::OpProtoAndCheckerMaker {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plat
=
paddle
::
platform
;
DECLARE_INFER_SHAPE_FUNCTOR
(
transfer_layout
,
TransferLayoutInferShapeFunctor
,
PD_INFER_META
(
phi
::
TransferLayoutInferMeta
));
...
...
paddle/fluid/operators/var_conv_2d_op.cc
浏览文件 @
138bdf40
...
...
@@ -523,8 +523,7 @@ class CPUVarConv2dOPGradKernel : public framework::OpKernel<T> {
}
// namespace paddle
namespace
ops
=
paddle
::
operators
;
namespace
plt
=
paddle
::
platform
;
namespace
frm
=
paddle
::
framework
;
REGISTER_OPERATOR
(
var_conv_2d
,
ops
::
VarConv2dOP
,
ops
::
VarConv2dOpMaker
,
...
...
paddle/fluid/pybind/data_set_py.cc
浏览文件 @
138bdf40
...
...
@@ -39,7 +39,6 @@ limitations under the License. */
#include "paddle/fluid/pybind/data_set_py.h"
namespace
py
=
pybind11
;
namespace
pd
=
paddle
::
framework
;
namespace
paddle
{
namespace
pybind
{
...
...
paddle/fluid/pybind/distributed_py.cc
浏览文件 @
138bdf40
...
...
@@ -54,8 +54,6 @@ limitations under the License. */
#include "paddle/phi/kernels/sync_batch_norm_kernel.h"
namespace
py
=
pybind11
;
namespace
paddle
{
namespace
pybind
{
...
...
paddle/fluid/pybind/eager_py_layer.cc
浏览文件 @
138bdf40
...
...
@@ -43,8 +43,6 @@ limitations under the License. */
namespace
paddle
{
namespace
pybind
{
namespace
py
=
::
pybind11
;
PyTypeObject
*
p_pylayer_type
;
extern
PyTypeObject
*
p_tensor_type
;
...
...
paddle/fluid/pybind/heter_wrapper_py.cc
浏览文件 @
138bdf40
...
...
@@ -29,8 +29,6 @@ limitations under the License. */
#include "paddle/fluid/framework/fleet/heter_wrapper.h"
#include "paddle/fluid/pybind/heter_wrapper_py.h"
namespace
py
=
pybind11
;
namespace
paddle
{
namespace
pybind
{
#if defined(PADDLE_WITH_PSLIB) && !defined(PADDLE_WITH_HETERPS)
...
...
paddle/fluid/pybind/metrics_py.cc
浏览文件 @
138bdf40
...
...
@@ -30,8 +30,6 @@ limitations under the License. */
#include "paddle/fluid/pybind/metrics_py.h"
namespace
py
=
pybind11
;
#if defined(PADDLE_WITH_PSLIB)
namespace
paddle
{
namespace
pybind
{
...
...
paddle/fluid/pybind/nccl_wrapper_py.cc
浏览文件 @
138bdf40
...
...
@@ -37,7 +37,6 @@ limitations under the License. */
#include "paddle/fluid/pybind/nccl_wrapper_py.h"
namespace
py
=
pybind11
;
namespace
pd
=
paddle
::
framework
;
namespace
paddle
{
namespace
pybind
{
...
...
paddle/fluid/pybind/op_function_common.cc
浏览文件 @
138bdf40
...
...
@@ -35,7 +35,6 @@
#include "paddle/fluid/pybind/imperative.h"
#include "paddle/phi/common/complex.h"
namespace
py
=
pybind11
;
namespace
paddle
{
namespace
pybind
{
...
...
paddle/fluid/pybind/protobuf.cc
浏览文件 @
138bdf40
...
...
@@ -44,9 +44,6 @@ PyTypeObject *g_blockdesc_pytype = nullptr;
namespace
pd
=
paddle
::
framework
;
namespace
jit
=
paddle
::
jit
;
using
paddle
::
distributed
::
TensorDistAttr
;
using
paddle
::
distributed
::
auto_parallel
::
OperatorDistAttr
;
template
<
typename
T
>
static
pybind11
::
bytes
SerializeMessage
(
T
&
self
)
{
// NOLINT due to pybind11 convention.
...
...
paddle/fluid/pybind/ps_gpu_wrapper_py.cc
浏览文件 @
138bdf40
...
...
@@ -29,8 +29,6 @@ limitations under the License. */
#include "paddle/fluid/framework/fleet/ps_gpu_wrapper.h"
#include "paddle/fluid/pybind/ps_gpu_wrapper_py.h"
namespace
py
=
pybind11
;
namespace
paddle
{
namespace
pybind
{
#ifdef PADDLE_WITH_HETERPS
...
...
paddle/phi/kernels/fusion/onednn/fused_matmul_kernel.cc
浏览文件 @
138bdf40
...
...
@@ -18,12 +18,7 @@
#include "paddle/phi/core/kernel_registry.h"
#include "paddle/phi/core/tensor_utils.h"
using
dnnl
::
engine
;
using
dnnl
::
inner_product_forward
;
using
dnnl
::
memory
;
using
dnnl
::
prop_kind
;
using
dnnl
::
stream
;
using
phi
::
ReshapeToMatrix
;
namespace
phi
{
namespace
fusion
{
...
...
paddle/phi/kernels/onednn/matmul_kernel.cc
浏览文件 @
138bdf40
...
...
@@ -23,7 +23,6 @@ using dnnl::engine;
using
dnnl
::
inner_product_forward
;
using
dnnl
::
memory
;
using
dnnl
::
prop_kind
;
using
dnnl
::
stream
;
using
phi
::
ReshapeToMatrix
;
namespace
phi
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录