Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Hackathon No.56 57 58 59】sparse elementwise add sub mul div #41857

Merged
merged 71 commits into from Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
1cd85c3
add sparse elementwise
gsq7474741 Apr 1, 2022
8b853ca
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 12, 2022
524f257
add sparse elementwise v0.2
gsq7474741 Apr 12, 2022
53cd020
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 12, 2022
dffed88
add sparse elementwise v0.3
gsq7474741 Apr 15, 2022
2b55850
add sparse elementwise v0.3
gsq7474741 Apr 15, 2022
775c759
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 15, 2022
ef85476
add sparse elementwise v0.3
gsq7474741 Apr 15, 2022
4b0a795
add sparse elementwise v0.5
gsq7474741 Apr 16, 2022
23405df
add sparse elementwise v0.5
gsq7474741 Apr 16, 2022
91113f0
add sparse elementwise v0.5
gsq7474741 Apr 16, 2022
7fafe60
add sparse elementwise v0.5
gsq7474741 Apr 16, 2022
c505424
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 17, 2022
8295c6c
add sparse elementwise v0.7
gsq7474741 Apr 17, 2022
c0a1715
add sparse elementwise v0.7
gsq7474741 Apr 17, 2022
12937b9
add sparse elementwise v0.8
gsq7474741 Apr 19, 2022
ad93cf2
add sparse elementwise v0.8
gsq7474741 Apr 20, 2022
2693091
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
c70f47f
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 26, 2022
77a9e41
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
3c380e5
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
4db25a2
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
bfcf8b5
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
1c73fa1
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
d315260
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
58ae918
add sparse elementwise v1.0
gsq7474741 Apr 26, 2022
2486bbd
add sparse elementwise v1.1
gsq7474741 Apr 28, 2022
ee779cc
add sparse elementwise v1.1
gsq7474741 Apr 28, 2022
2e0a06d
Merge branch 'PaddlePaddle:develop' into add_sparse_add
gsq7474741 Apr 28, 2022
ae8f9a5
add sparse elementwise v1.1
gsq7474741 Apr 28, 2022
c96eb12
add sparse elementwise v1.2
gsq7474741 Apr 28, 2022
a803b2f
add sparse elementwise v1.2
gsq7474741 Apr 28, 2022
c0eb080
add sparse elementwise v1.3
gsq7474741 Apr 28, 2022
fac8b19
add sparse elementwise v1.3
gsq7474741 Apr 28, 2022
f25b785
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Apr 29, 2022
df4f31f
add sparse elementwise v1.5
gsq7474741 Apr 29, 2022
1089437
add sparse elementwise v2.0
gsq7474741 Apr 29, 2022
04cb8dd
working for fix int div
gsq7474741 May 11, 2022
6760dde
fix int div
gsq7474741 May 11, 2022
98ed2ee
fix int div
gsq7474741 May 11, 2022
e2a6759
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 May 12, 2022
ff8a570
fix int div
gsq7474741 May 12, 2022
afb683a
fix int div docstring
gsq7474741 May 13, 2022
38900db
fix coverage
gsq7474741 May 17, 2022
b479623
move to incubate
gsq7474741 May 24, 2022
8f778eb
move to incubate
gsq7474741 May 24, 2022
9ee2433
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 May 24, 2022
08b8ae4
move to incubate
gsq7474741 May 24, 2022
f13605e
move to incubate
gsq7474741 May 24, 2022
4a1254d
move to incubate
gsq7474741 May 24, 2022
352488c
fix incubate import
gsq7474741 May 24, 2022
317180c
move to incubate
gsq7474741 May 24, 2022
5caecfd
move to incubate
gsq7474741 May 26, 2022
9c28db1
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 May 26, 2022
8c8ff0d
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Jun 9, 2022
97b3900
move to incubate
gsq7474741 Jun 9, 2022
b255616
resolve conflict
gsq7474741 Jun 11, 2022
c92080a
resolve conflict
gsq7474741 Jun 12, 2022
8185174
pre-commit fix
gsq7474741 Jun 14, 2022
b1a45ab
Merge remote-tracking branch 'origin/develop' into add_sparse_add
gsq7474741 Jun 15, 2022
2be0b15
kernel and api name change
gsq7474741 Jun 15, 2022
6528899
kernel and api name change
gsq7474741 Jun 15, 2022
8061189
kernel and api name change
gsq7474741 Jun 15, 2022
d7fc195
kernel and api name change
gsq7474741 Jun 15, 2022
5eda983
kernel and api name change
gsq7474741 Jun 15, 2022
359465f
kernel and api name change
gsq7474741 Jun 15, 2022
f7332b5
kernel and api name change
gsq7474741 Jun 15, 2022
9dfcbf1
kernel and api name change
gsq7474741 Jun 16, 2022
6fec8a9
kernel and api name change
gsq7474741 Jun 16, 2022
581f0e2
kernel and api name change
gsq7474741 Jun 20, 2022
89d8cc5
fix kernel name
gsq7474741 Jun 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions paddle/phi/kernels/activation_kernel.h
Expand Up @@ -71,6 +71,7 @@ DECLARE_ACTIVATION_KERNEL(Log1p)
DECLARE_ACTIVATION_KERNEL(Round)
DECLARE_ACTIVATION_KERNEL(Floor)
DECLARE_ACTIVATION_KERNEL(Ceil)
DECLARE_ACTIVATION_KERNEL(Negative)

DECLARE_ACTIVATION_KERNEL_WITH_ONE_ATTRS(LeakyRelu, alpha)
DECLARE_ACTIVATION_KERNEL_WITH_ONE_ATTRS(ThresholdedRelu, threshold)
Expand Down
10 changes: 10 additions & 0 deletions paddle/phi/kernels/cpu/activation_kernel.cc
Expand Up @@ -89,6 +89,7 @@ DEFINE_CPU_ACTIVATION_KERNEL(Log1p, Log1pFunctor)
DEFINE_CPU_ACTIVATION_KERNEL(Round, RoundFunctor)
DEFINE_CPU_ACTIVATION_KERNEL(Floor, FloorFunctor)
DEFINE_CPU_ACTIVATION_KERNEL(Ceil, CeilFunctor)
DEFINE_CPU_ACTIVATION_KERNEL(Negative, NegativeFunctor)

DEFINE_CPU_ACT_KERNEL_WITH_ONE_ATTRS(LeakyRelu, LeakyReluFunctor, alpha)
DEFINE_CPU_ACT_KERNEL_WITH_ONE_ATTRS(ThresholdedRelu,
Expand Down Expand Up @@ -182,6 +183,15 @@ PD_REGISTER_ACTIVATION_KERNEL(swish, SwishKernel)
PD_REGISTER_ACTIVATION_KERNEL(round, RoundKernel)
PD_REGISTER_ACTIVATION_KERNEL(floor, FloorKernel)
PD_REGISTER_ACTIVATION_KERNEL(ceil, CeilKernel)
PD_REGISTER_KERNEL(negative,
CPU,
ALL_LAYOUT,
phi::NegativeKernel,
float,
double,
int16_t,
int,
int64_t) {}
PD_REGISTER_ACTIVATION_KERNEL(celu, CeluKernel)
PD_REGISTER_KERNEL(
pow, CPU, ALL_LAYOUT, phi::PowKernel, float, double, int, int64_t) {}
8 changes: 8 additions & 0 deletions paddle/phi/kernels/funcs/activation_functor.h
Expand Up @@ -1814,6 +1814,14 @@ struct CeilFunctor : public BaseActivationFunctor<T> {
}
};

template <typename T>
struct NegativeFunctor : public BaseActivationFunctor<T> {
template <typename Device, typename X, typename Out>
void operator()(Device d, X x, Out out) const {
out.device(d) = -x;
}
};

template <typename T>
struct ZeroGradFunctor : public BaseActivationFunctor<T> {
template <typename Device,
Expand Down