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

add kernel primitive api #3890

Merged
merged 75 commits into from
Oct 13, 2021
Merged
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
fafbb84
add kernel primitive api
AnnaTrainingG Sep 17, 2021
997a971
Merge branch 'develop' of https://github.com/PaddlePaddle/docs into P…
AnnaTrainingG Sep 17, 2021
7f0812f
modfied index_cn in guides
AnnaTrainingG Sep 18, 2021
c83cb7b
update
AnnaTrainingG Sep 18, 2021
210ab74
update
AnnaTrainingG Sep 18, 2021
319ba2f
update
AnnaTrainingG Sep 18, 2021
c95af9d
update
AnnaTrainingG Sep 18, 2021
3a6b52a
update
AnnaTrainingG Sep 18, 2021
6012225
update
AnnaTrainingG Sep 18, 2021
21bc6f3
update
AnnaTrainingG Sep 18, 2021
98a2eb7
update
AnnaTrainingG Sep 18, 2021
12cf54f
yes
AnnaTrainingG Sep 22, 2021
66621b9
update
AnnaTrainingG Sep 22, 2021
cbcf3b8
update
AnnaTrainingG Sep 22, 2021
b54eb97
update
AnnaTrainingG Sep 22, 2021
84b6984
add case
AnnaTrainingG Sep 22, 2021
cce555f
update
AnnaTrainingG Sep 22, 2021
8e8ab02
all in io
AnnaTrainingG Sep 22, 2021
da7593c
temp
AnnaTrainingG Sep 22, 2021
e18ec8f
temp update
AnnaTrainingG Sep 22, 2021
d674dd7
temp update
AnnaTrainingG Sep 22, 2021
c21109b
update temp
AnnaTrainingG Sep 22, 2021
cdf48c1
update
AnnaTrainingG Sep 22, 2021
f6d915c
add index_en
AnnaTrainingG Sep 23, 2021
4b4d40d
add en
AnnaTrainingG Sep 23, 2021
01943ef
update en
AnnaTrainingG Sep 23, 2021
4b37f31
update
AnnaTrainingG Sep 23, 2021
57d114d
update
AnnaTrainingG Sep 24, 2021
f7f36e9
update
AnnaTrainingG Sep 24, 2021
b48082c
update
AnnaTrainingG Sep 24, 2021
e2d1e5f
update
AnnaTrainingG Sep 24, 2021
cc30464
upate
AnnaTrainingG Sep 24, 2021
fa50b68
Update index_en.rst
AnnaTrainingG Sep 24, 2021
4d62970
update
AnnaTrainingG Sep 24, 2021
3924dd2
Merge branch 'Primitive_API_31094' of https://github.com/niuliling123…
AnnaTrainingG Sep 24, 2021
84986c6
update
AnnaTrainingG Sep 24, 2021
19d0f5b
update
AnnaTrainingG Sep 24, 2021
cbccb13
update
AnnaTrainingG Sep 24, 2021
caab6d2
update
AnnaTrainingG Sep 24, 2021
fec8e48
add url
AnnaTrainingG Sep 26, 2021
fd8552b
update from ELe to Ele
AnnaTrainingG Sep 27, 2021
2f82c40
update
AnnaTrainingG Sep 27, 2021
4e23256
update Block
AnnaTrainingG Sep 27, 2021
8ca099b
update
AnnaTrainingG Sep 28, 2021
94123a6
add functor
AnnaTrainingG Sep 29, 2021
d6c2ec2
update
AnnaTrainingG Sep 29, 2021
8fbf2cb
update
AnnaTrainingG Sep 29, 2021
50f114b
add images
AnnaTrainingG Sep 29, 2021
6a0433c
update
AnnaTrainingG Sep 29, 2021
b3611e2
temp
AnnaTrainingG Sep 29, 2021
315ab1f
add en
AnnaTrainingG Sep 29, 2021
22ca7e0
update
AnnaTrainingG Sep 29, 2021
898b611
add static_cast
AnnaTrainingG Sep 29, 2021
f782de7
add static_cast
AnnaTrainingG Sep 29, 2021
a185ff0
update
AnnaTrainingG Sep 30, 2021
6f806d9
add functor_en
AnnaTrainingG Sep 30, 2021
32b04d6
update image
AnnaTrainingG Sep 30, 2021
2c788b5
update
AnnaTrainingG Sep 30, 2021
ffbc1a5
update
AnnaTrainingG Sep 30, 2021
16f2cff
add example_reduce.png
AnnaTrainingG Sep 30, 2021
757594e
add example_reduce.png
AnnaTrainingG Sep 30, 2021
0c12dcb
update and add example_add png
AnnaTrainingG Oct 8, 2021
a531027
update
AnnaTrainingG Oct 8, 2021
f65400c
update en
AnnaTrainingG Oct 9, 2021
e6a3d6d
update index and functor
AnnaTrainingG Oct 9, 2021
253bf26
update
AnnaTrainingG Oct 11, 2021
bc68805
update all
AnnaTrainingG Oct 11, 2021
b438f08
update paddlepaddle
AnnaTrainingG Oct 11, 2021
3b9322c
add url for functor
AnnaTrainingG Oct 11, 2021
df442c7
update for merge
AnnaTrainingG Oct 12, 2021
187147f
update functor_en url
AnnaTrainingG Oct 12, 2021
4dfed57
add init in io
AnnaTrainingG Oct 12, 2021
a23984a
update stride_nx in image
AnnaTrainingG Oct 12, 2021
978688d
update ;
AnnaTrainingG Oct 12, 2021
14856dd
update image and notes
AnnaTrainingG Oct 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update functor_en url
  • Loading branch information
AnnaTrainingG committed Oct 12, 2021
commit 187147f4a9314e337e8e6240c6589499f59cb4fa
26 changes: 13 additions & 13 deletions docs/guides/07_new_op/kernel_primitive_api/functor_api_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Introduce the calculation functors defined by the Kernel Primitive API. There ar

## Unary Functor

### ExpFunctor
### [ExpFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L42)

#### Definition
```
Expand Down Expand Up @@ -32,7 +32,7 @@ kps::ElementwiseUnary<float, float, VecSize, 1, 1, kps::ExpFunctor<float>>(out,
```


### IdentityFunctor
### [IdentityFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L56)
#### Definition
```
namespace kps = paddle::operators::kernel_primitives;
Expand All @@ -59,7 +59,7 @@ kps::ElementwiseUnary<float, int, VecSize, 1, 1, kps::IdentityFunctor<float, int
// out[0] = 1
```

### DivideFunctor
### [DivideFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L70)
#### Definition
```
namespace kps = paddle::operators::kernel_primitives;
Expand Down Expand Up @@ -88,7 +88,7 @@ kps::ElementwiseUnary<float, float, VecSize, 1, 1, kps::DivideFunctor<float>>(ou
// out[0] = 0.3
```

### SquareFunctor
### [SquareFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L91)

#### Definition
```
Expand Down Expand Up @@ -118,7 +118,7 @@ kps::ElementwiseUnary<float, float, VecSize, 1, 1, kps::SquareFunctor<float>>(ou

## Binary Functor

### MinFunctor
### [MinFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L103)

#### Definition
```
Expand Down Expand Up @@ -147,7 +147,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::MinFunctor<float>>(out,
// out[0] = 1.0
```

### MaxFunctor
### [MaxFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L115)

#### Definition
```
Expand Down Expand Up @@ -176,7 +176,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::MaxFunctor<float>>(out,
// out[0] = 3.0
```

### AddFunctor
### [AddFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L129)

#### Definition
```
Expand Down Expand Up @@ -205,7 +205,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::AddFunctor<float>>(out,
// out[0] = 4.0
```

### MulFunctor
### [MulFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L141)

#### Definition
```
Expand Down Expand Up @@ -234,7 +234,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::MulFunctor<float>>(out,
// out[0] = 3.0
```

### LogicalOrFunctor
### [LogicalOrFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L153)

#### Definition
```
Expand Down Expand Up @@ -263,7 +263,7 @@ kps::ElementwiseBinary<bool, bool, VecSize, 1, 1, kps::LogicalOrFunctor<bool>>(o
// out[0] = true
```

### LogicalAndFunctor
### [LogicalAndFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L165)

#### Definition
```
Expand Down Expand Up @@ -292,7 +292,7 @@ kps::ElementwiseBinary<bool, bool, VecSize, 1, 1, kps::LogicalAndFunctor<bool>>(
// out[0] = false
```

### SubFunctor
### [SubFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L177)

#### Definition
```
Expand Down Expand Up @@ -321,7 +321,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::SubFunctor<float>>(out,
// out[0] = 2.0
```

### DivFunctor
### [DivFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L187)

#### Definition
```
Expand Down Expand Up @@ -350,7 +350,7 @@ kps::ElementwiseBinary<float, float, VecSize, 1, 1, kps::DivideFunctor<float>>(o
// out[0] = 3.0
```

### FloorDivFunctor
### [FloorDivFunctor](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/operators/kernel_primitives/functor_primitives.h#L212)

#### Definition
```
Expand Down