mirror of
https://github.com/Tencent/ncnn.git
synced 2026-10-25 18:30:16 +08:00
discard weight memory for x86 arm vulkan (#3865)
* discard weight memory for x86 and vulkan * drop arm innerproduct weight * drop arm convolution weight * drop arm convolutiondepthwise weight * drop x86 vulkan deconvolution deconvolutiondepthwise weight * drop arm deconvolution deconvolutiondepthwise weight * arm neon assembly optimization for innerproduct pack4
This commit is contained in:
+1
-1
@@ -3175,7 +3175,7 @@ void VkTransfer::record_upload(const Mat& src, VkImageMat& dst, const Option& op
|
||||
// NCNN_LOGE("record_upload image src = %d | %d %d %d @ %d", src.dims, src.w, src.h, src.c, src.elempack);
|
||||
|
||||
// NOTE keep the hack here ?
|
||||
if (src.elemsize == src.elempack * 4u)
|
||||
if (src.elembits() == 32)
|
||||
{
|
||||
if (opt.use_fp16_storage || (opt.use_fp16_packed && src.elempack % 4 == 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user