未验证 提交 27f3a050 编写于 作者: S smilejames 提交者: GitHub

Merge pull request #845 from yangfei963158659/develop

repair bug of  predict ten times' diffent result in genet
......@@ -96,6 +96,10 @@ void ConvTransposeCompute(const ConvTransposeParam<CPU> &param) {
math::matmul(filter_slice, true, in_slice, false, static_cast<P>(1.0),
&col_matrix, static_cast<P>(0.0));
//初始化out_slice的值为0
float *tmp = out_slice.data<float>();
int numel = out_slice.numel();
memset(static_cast<void *>(tmp), 0, sizeof(float) * numel);
if (data_dim == 2U) {
col2im(col, dilations, strides,
std::vector<int>{paddings[0], paddings[1], paddings[0],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册