Browse Source

fix layer innerproduct when build with requant option on (#1624)

tags/20200413
Xu Yang GitHub 6 years ago
parent
commit
dbd9cbab4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/layer/innerproduct.cpp

+ 1
- 1
src/layer/innerproduct.cpp View File

@@ -171,7 +171,7 @@ int InnerProduct::forward_int8(const Mat& bottom_blob, Mat& top_blob, const Opti
quantize_float32_to_int8(bottom_blob, bottom_blob_tm, bottom_blob_int8_scale, opt_g);
}

top_blob.create(num_output, elemsize, opt.blob_allocator);
top_blob.create(num_output, 4u, opt.blob_allocator);
if (top_blob.empty())
return -100;



Loading…
Cancel
Save