diff --git a/develop/doc/_sources/design/support_new_device.md.txt b/develop/doc/_sources/design/support_new_device.md.txt index b154f01d32c5952367f075a732e2f7729d3c8626..8983df900460127fc130043c52373dab505363ba 100644 --- a/develop/doc/_sources/design/support_new_device.md.txt +++ b/develop/doc/_sources/design/support_new_device.md.txt @@ -174,7 +174,7 @@ class MaxOutFunctor { }; ``` -CPU implemention is in .cc file +CPU implementation is in .cc file ``` template @@ -188,7 +188,7 @@ class MaxOutFunctor { }; ``` -CUDA implemention is in .cu file +CUDA implementation is in .cu file ``` template @@ -203,9 +203,9 @@ class MaxOutFunctor { ``` -We first obtain the computing handle from a concrete DeviceContext, and then compute on tensors. +We first obtain the computing handle from a concrete DeviceContext and then compute on tensors. -The implemention of `OpKernel` is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map. +The implementation of `OpKernel` is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map. Fluid provides different register interfaces in op_registry.h diff --git a/develop/doc/design/support_new_device.html b/develop/doc/design/support_new_device.html index 9274dfca437a833c2dd3170746d24d89ac5ebf43..ae5d59ee67073eda6c728bd3d0ee2d8c41da19fa 100644 --- a/develop/doc/design/support_new_device.html +++ b/develop/doc/design/support_new_device.html @@ -358,7 +358,7 @@ }; -

CPU implemention is in .cc file

+

CPU implementation is in .cc file

template <typename T>
 class MaxOutFunctor<platform::CPUDeviceContext, T> {
   public:
@@ -370,7 +370,7 @@
 };
 
-

CUDA implemention is in .cu file

+

CUDA implementation is in .cu file

template <typename T>
 class MaxOutFunctor<platform::CUDADeviceContext, T> {
  public:
@@ -382,8 +382,8 @@
 };                  
 
-

We first obtain the computing handle from a concrete DeviceContext, and then compute on tensors.

-

The implemention of OpKernel is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map.

+

We first obtain the computing handle from a concrete DeviceContext and then compute on tensors.

+

The implementation of OpKernel is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map.

Fluid provides different register interfaces in op_registry.h

Let’s take Crop operator as an example:

In .cc file:

diff --git a/develop/doc_cn/_sources/design/support_new_device.md.txt b/develop/doc_cn/_sources/design/support_new_device.md.txt index b154f01d32c5952367f075a732e2f7729d3c8626..8983df900460127fc130043c52373dab505363ba 100644 --- a/develop/doc_cn/_sources/design/support_new_device.md.txt +++ b/develop/doc_cn/_sources/design/support_new_device.md.txt @@ -174,7 +174,7 @@ class MaxOutFunctor { }; ``` -CPU implemention is in .cc file +CPU implementation is in .cc file ``` template @@ -188,7 +188,7 @@ class MaxOutFunctor { }; ``` -CUDA implemention is in .cu file +CUDA implementation is in .cu file ``` template @@ -203,9 +203,9 @@ class MaxOutFunctor { ``` -We first obtain the computing handle from a concrete DeviceContext, and then compute on tensors. +We first obtain the computing handle from a concrete DeviceContext and then compute on tensors. -The implemention of `OpKernel` is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map. +The implementation of `OpKernel` is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map. Fluid provides different register interfaces in op_registry.h diff --git a/develop/doc_cn/design/support_new_device.html b/develop/doc_cn/design/support_new_device.html index c3cc7a7171f4329e13e898be46acee05408cf4df..892fdb8f2f0130e6cea16dd24f133478d6ee36bd 100644 --- a/develop/doc_cn/design/support_new_device.html +++ b/develop/doc_cn/design/support_new_device.html @@ -377,7 +377,7 @@ }; -

CPU implemention is in .cc file

+

CPU implementation is in .cc file

template <typename T>
 class MaxOutFunctor<platform::CPUDeviceContext, T> {
   public:
@@ -389,7 +389,7 @@
 };
 
-

CUDA implemention is in .cu file

+

CUDA implementation is in .cu file

template <typename T>
 class MaxOutFunctor<platform::CUDADeviceContext, T> {
  public:
@@ -401,8 +401,8 @@
 };                  
 
-

We first obtain the computing handle from a concrete DeviceContext, and then compute on tensors.

-

The implemention of OpKernel is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map.

+

We first obtain the computing handle from a concrete DeviceContext and then compute on tensors.

+

The implementation of OpKernel is similar to math functors, the extra thing we need to do is to register the OpKernel in a global map.

Fluid provides different register interfaces in op_registry.h

Let’s take Crop operator as an example:

In .cc file: