提交 ccd46d1b 编写于 作者: X xzl

modify format accored with clang-format 3.8

上级 2bc08f89
...@@ -60,6 +60,7 @@ public: ...@@ -60,6 +60,7 @@ public:
int paddingH, int paddingH,
int paddingW, int paddingW,
T* inputGrad) {} T* inputGrad) {}
// TODO(zhaolong) : cpu implementation of depthwise convolution
}; };
template <class T> template <class T>
...@@ -82,6 +83,7 @@ public: ...@@ -82,6 +83,7 @@ public:
int paddingW, int paddingW,
T* colData, T* colData,
T* filterGrad) {} T* filterGrad) {}
// TODO(zhaolong) : cpu implementation of depthwise convolution
}; };
/* /*
......
...@@ -122,11 +122,8 @@ public: ...@@ -122,11 +122,8 @@ public:
* \param[in] paddingH padding size in height direction. * \param[in] paddingH padding size in height direction.
* \param[in] paddingW padding size in width direction. * \param[in] paddingW padding size in width direction.
* \param[in] colData Auxiliary data when calculating filterGrad. * \param[in] colData Auxiliary data when calculating filterGrad.
* size: * \param[in] multiplierData Auxiliary data when calculating filterGrad.
*inputChannels*filterHeight*filterWidth*outputHeight*outputWidth \param[in] * \param[out] filterGrad the grad data of filter.
*multiplierData Auxiliary data when calculating filterGrad. size:
*outputHeight * outputWidth. \param[out]
*filterGrad the grad data of filter.
* *
*/ */
template <DeviceType Device, class T> template <DeviceType Device, class T>
......
...@@ -17,6 +17,7 @@ limitations under the License. */ ...@@ -17,6 +17,7 @@ limitations under the License. */
#include "paddle/math/BaseMatrix.h" #include "paddle/math/BaseMatrix.h"
namespace paddle { namespace paddle {
// CUDA kernel to compute the depthwise convolution forward pass // CUDA kernel to compute the depthwise convolution forward pass
template <class T> template <class T>
__global__ __global__
......
...@@ -22,7 +22,7 @@ namespace paddle { ...@@ -22,7 +22,7 @@ namespace paddle {
/** /**
* @brief A subclass of convolution layer. * @brief A subclass of convolution layer.
* This layer do the depthwise convolution calculation in mobilenet. * This layer does the depthwise convolution calculation of mobilenet.
* The config file api is img_depthwise_conv_layer. * The config file api is img_depthwise_conv_layer.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册