From 6c9aa421579111dcccae23cd4c25b47871a0bd5b Mon Sep 17 00:00:00 2001 From: jameswu2014 <545426914@qq.com> Date: Sat, 7 Mar 2020 19:47:13 +0800 Subject: [PATCH] pre-commit pass --- .../kernel/fpga/V1/.fetch_kernel.cpp.swp | Bin 0 -> 16384 bytes .../operators/kernel/fpga/V1/fetch_kernel.cpp | 1 + 2 files changed, 1 insertion(+) create mode 100644 mobile/src/operators/kernel/fpga/V1/.fetch_kernel.cpp.swp diff --git a/mobile/src/operators/kernel/fpga/V1/.fetch_kernel.cpp.swp b/mobile/src/operators/kernel/fpga/V1/.fetch_kernel.cpp.swp new file mode 100644 index 0000000000000000000000000000000000000000..a49df219da80b5418ef845304c9d3619a269a5f3 GIT binary patch literal 16384 zcmeHNO^h5z6)qb{0wG|9L?EPym$gJ@*0VGFV;O6ICQN46-XZJR)$ZDhahz6fcg=Q( zp6;f*#^a6SfDji1621~p6d`fo0vzBHM9eLUgajNT4k!W+AdoyX8PyVdsW|i_0z9wclt`_5`Ch6mf<+X*fU>tp8d{J^W+m>VJz_E&3hkdYJ zxxtg;WnT=u#_;+5Mr^xoz^4LV@WzHdUz6wkXx9&TBTbw}6!XLuQIa-3%af1?jb6NG zH?GVydR#c3rEk`qI6mH@d1@Fi3@8Q$qBnK^AvQNVGcB)APdrW^dib&-$1q?RFbo(5 z3GHFkl$?KVm?{C)wxG-ji9I{p|n5q5pSf*B{CLpF8wCyEK1>0mFb{z%XDK zFbo(53GHFkl!k47>vwuwBO9i+a5wU-5~OvF`z20-gi5fi2)7@Br|$_cQiG;3XgiR)Dj>G;k7l>p{kT0(>8M z1-JtQKo^(>9tKVTzkVNMzXDzZUI0D=)PO&u0j~mI0A2t-1$2Oq0>6KNu^$6p100|V zoC5xFKV!cH?gDoJ2WSDG1ZIE+@Ya2deH{=$7pMX!fH&U5*tdX}fo}qLfK}iW@b`B! z_H*Fdz!!mQz)T40Ru zR1k`y!KtR}_tQ$Xxpet5$UeAI-G8mme5 zFh12(Vyd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%49aHoO?rtFDuaAIml%dw_r)rsP6o)@_RC$dGtVqRiaO&MwO%R nArHREz6h4Snv^_S`ogFZJNNpMS3CG_3VUOdez)Jr`Ne+$0ks{z literal 0 HcmV?d00001 diff --git a/mobile/src/operators/kernel/fpga/V1/fetch_kernel.cpp b/mobile/src/operators/kernel/fpga/V1/fetch_kernel.cpp index 729fd289c8..89cfe8f263 100644 --- a/mobile/src/operators/kernel/fpga/V1/fetch_kernel.cpp +++ b/mobile/src/operators/kernel/fpga/V1/fetch_kernel.cpp @@ -80,6 +80,7 @@ void FetchKernel::Compute(const FetchParam ¶m) { auto output = ¶m.Out()->at(col); if (input->type() == type_id()) { output->ShareDataWith(*input); + // output dims equal to input dim output->Resize(input->dims()); return; } -- GitLab