提交 6598eb82 编写于 作者: Y yangfei

add cl kernel for mobilenetssd

上级 aee4ffcf
...@@ -17,18 +17,18 @@ limitations under the License. */ ...@@ -17,18 +17,18 @@ limitations under the License. */
#include "operators/kernel/box_coder_kernel.h" #include "operators/kernel/box_coder_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <> template <>
bool BoxCoderKernel<GPU_CL, float>::Init(BoxCoderParam<GPU_CL> *param) { bool BoxCoderKernel<GPU_CL, float>::Init(BoxCoderParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void BoxCoderKernel<GPU_CL, float>::Compute(const BoxCoderParam<GPU_CL> &param) { void BoxCoderKernel<GPU_CL, float>::Compute(
} const BoxCoderParam<GPU_CL> &param) {}
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -17,19 +17,17 @@ limitations under the License. */ ...@@ -17,19 +17,17 @@ limitations under the License. */
#include "operators/kernel/concat_kernel.h" #include "operators/kernel/concat_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <> template <>
bool ConcatKernel<GPU_CL, float>::Init(ConcatParam<GPU_CL> *param) { bool ConcatKernel<GPU_CL, float>::Init(ConcatParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void ConcatKernel<GPU_CL, float>::Compute(const ConcatParam<GPU_CL> &param) { void ConcatKernel<GPU_CL, float>::Compute(const ConcatParam<GPU_CL> &param) {}
} } // namespace operators
} // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -17,21 +17,20 @@ limitations under the License. */ ...@@ -17,21 +17,20 @@ limitations under the License. */
#include "operators/kernel/conv_bn_relu_kernel.h" #include "operators/kernel/conv_bn_relu_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <>
bool ConvBNReluKernel<GPU_CL, float>::Init(FusionConvBNReluParam<GPU_CL> *param) {
template <>
bool ConvBNReluKernel<GPU_CL, float>::Init(
FusionConvBNReluParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void ConvBNReluKernel<GPU_CL, float>::Compute( void ConvBNReluKernel<GPU_CL, float>::Compute(
const FusionConvBNReluParam<GPU_CL> &param) { const FusionConvBNReluParam<GPU_CL> &param) {}
} template class ConvBNReluKernel<GPU_CL, float>;
template class ConvBNReluKernel<GPU_CL, float>;
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -17,21 +17,20 @@ limitations under the License. */ ...@@ -17,21 +17,20 @@ limitations under the License. */
#include "operators/kernel/dwconv_bn_relu_kernel.h" #include "operators/kernel/dwconv_bn_relu_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <>
bool DWConvBNReluKernel<GPU_CL, float>::Init(FusionDWConvBNReluParam<GPU_CL> *param) {
template <>
bool DWConvBNReluKernel<GPU_CL, float>::Init(
FusionDWConvBNReluParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void DWConvBNReluKernel<GPU_CL, float>::Compute( void DWConvBNReluKernel<GPU_CL, float>::Compute(
const FusionDWConvBNReluParam<GPU_CL> &param) { const FusionDWConvBNReluParam<GPU_CL> &param) {}
} template class DWConvBNReluKernel<GPU_CL, float>;
template class DWConvBNReluKernel<GPU_CL, float>;
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -17,19 +17,19 @@ limitations under the License. */ ...@@ -17,19 +17,19 @@ limitations under the License. */
#include "operators/kernel/multiclass_nms_kernel.h" #include "operators/kernel/multiclass_nms_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <> template <>
bool MultiClassNMSKernel<GPU_CL, float>::Init(MultiClassNMSParam<GPU_CL> *param) { bool MultiClassNMSKernel<GPU_CL, float>::Init(
MultiClassNMSParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void MultiClassNMSKernel<GPU_CL, float>::Compute( void MultiClassNMSKernel<GPU_CL, float>::Compute(
const MultiClassNMSParam<GPU_CL> &param) { const MultiClassNMSParam<GPU_CL> &param) {}
}
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -17,20 +17,19 @@ limitations under the License. */ ...@@ -17,20 +17,19 @@ limitations under the License. */
#include "operators/kernel/prior_box_kernel.h" #include "operators/kernel/prior_box_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <> template <>
bool PriorBoxKernel<GPU_CL, float>::Init(PriorBoxParam<GPU_CL> *param) { bool PriorBoxKernel<GPU_CL, float>::Init(PriorBoxParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void PriorBoxKernel<GPU_CL, float>::Compute(const PriorBoxParam<GPU_CL> &param) { void PriorBoxKernel<GPU_CL, float>::Compute(
const PriorBoxParam<GPU_CL> &param) {}
template class PriorBoxKernel<GPU_CL, float>;
} } // namespace operators
template class PriorBoxKernel<GPU_CL, float>;
} // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
...@@ -16,18 +16,18 @@ limitations under the License. */ ...@@ -16,18 +16,18 @@ limitations under the License. */
#include "operators/kernel/transpose_kernel.h" #include "operators/kernel/transpose_kernel.h"
namespace paddle_mobile { namespace paddle_mobile {
namespace operators { namespace operators {
template <> template <>
bool TransposeKernel<GPU_CL, float>::Init(TransposeParam<GPU_CL> *param) { bool TransposeKernel<GPU_CL, float>::Init(TransposeParam<GPU_CL> *param) {
return true; return true;
} }
template <> template <>
void TransposeKernel<GPU_CL, float>::Compute(const TransposeParam<GPU_CL> &param) { void TransposeKernel<GPU_CL, float>::Compute(
} const TransposeParam<GPU_CL> &param) {}
} // namespace operators } // namespace operators
} // namespace paddle_mobile } // namespace paddle_mobile
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册