Skip to content

Commit

Permalink
follow comments
Browse files Browse the repository at this point in the history
  • Loading branch information
QiJune committed Dec 21, 2017
1 parent 2dca713 commit 81c6a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/design/operator_kernel_type.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Design Doc: The Keys of Operator Kernel Type
## Problem
An operator can have different kernel implementations, and each operator will have map to store the related kernels. Fluid uses `OpKernelType` as a key to identify a unique Kernel. Before an operator runs, an certain kernel must be choose by a key of `OpKernelType`. Currently, `OpKernelType` is defined as follows:
An operator can have different kernel implementations, and each operator will have a map to store the related kernels. Fluid uses `OpKernelType` as a key to identify a unique Kernel. Before an operator runs, an certain kernel must be chosen by a key of `OpKernelType`. Currently, `OpKernelType` is defined as follows:

```cpp
struct OpKernelType {
Expand Down Expand Up @@ -46,7 +46,7 @@ typedef boost::variant<CUDAPlace, ROCmPlace, FPGAPlace, CPUPlace> Place;

### Library

An operator kernel is usually implemented based on some library. `Library` is defined as a enum variable:
One operator kernel is usually implemented based on one library. `Library` is defined as a enum variable:

```cpp
enum Library { Plain, MKLDNN, CUDNN };
Expand Down

0 comments on commit 81c6a75

Please sign in to comment.