forked from mindspore-Ecosystem/mindspore
!4902 comment only conv1x1fp16
Merge pull request !4902 from zhaozhenlong/lite/issue/only_comment_conv1x1
This commit is contained in:
commit
39eebca88a
|
@ -242,7 +242,8 @@ kernel::LiteKernel *CpuConvFp16KernelCreator(const std::vector<lite::tensor::Ten
|
||||||
|
|
||||||
kernel::LiteKernel *kernel = nullptr;
|
kernel::LiteKernel *kernel = nullptr;
|
||||||
if (kernel_h == 1 && kernel_w == 1) {
|
if (kernel_h == 1 && kernel_w == 1) {
|
||||||
kernel = new (std::nothrow) kernel::Convolution1x1FP16CPUKernel(opParameter, inputs, outputs, ctx, primitive);
|
// kernel = new (std::nothrow) kernel::Convolution1x1FP16CPUKernel(opParameter, inputs, outputs, ctx, primitive);
|
||||||
|
kernel = new (std::nothrow) kernel::ConvolutionFP16CPUKernel(opParameter, inputs, outputs, ctx, primitive);
|
||||||
} else {
|
} else {
|
||||||
bool use_winograd = false;
|
bool use_winograd = false;
|
||||||
int out_unit;
|
int out_unit;
|
||||||
|
@ -273,5 +274,5 @@ kernel::LiteKernel *CpuConvFp16KernelCreator(const std::vector<lite::tensor::Ten
|
||||||
}
|
}
|
||||||
return kernel;
|
return kernel;
|
||||||
}
|
}
|
||||||
// REG_KERNEL(kCPU, kNumberTypeFloat16, PrimitiveType_Conv2D, CpuConvFp16KernelCreator)
|
REG_KERNEL(kCPU, kNumberTypeFloat16, PrimitiveType_Conv2D, CpuConvFp16KernelCreator)
|
||||||
} // namespace mindspore::kernel
|
} // namespace mindspore::kernel
|
||||||
|
|
Loading…
Reference in New Issue