Skip to content

Commit c09fefe

Browse files
committed
*change InnerProduct test set.
1 parent 9dcedc9 commit c09fefe

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Test/TestSynetInnerProduct.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ namespace Test
130130
aHi = SimdConvolutionActivationHardSigmoid, aSw = SimdConvolutionActivationSwish, aGe = SimdConvolutionActivationGelu;
131131

132132
#if defined(NDEBUG)
133-
#if 1
133+
#if 0
134134
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(128, 128, 128, f, t, t, aId), f1, f2);
135135
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(128, 133, 144, f, t, t, aRe), f1, f2);
136136
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(128, 133, 144, f, f, t, aRe), f1, f2);
@@ -141,6 +141,10 @@ namespace Test
141141
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(1, 512, 128, t, t, t, aId), f1, f2);
142142
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(1, 512, 128, t, t, t, aRr), f1, f2);
143143
#endif
144+
#if 1
145+
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(128, 128, 128, f, t, t, aId), f1, f2);
146+
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(1, 512, 8192, f, t, t, aRe), f1, f2);
147+
#endif
144148
#else
145149
result = result && SynetInnerProduct32fForwardAutoTest(eps, Param(49, 32, 49, f, t, t, aId), f1, f2);
146150
#endif

src/Test/TestSynetInnerProduct16b.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ namespace Test
243243
result = result && SynetInnerProduct16bForwardAutoTest(eps, Param(9, 128, 9, f32, f32, f32, f, f, f, aId), f1, f2);
244244
#endif
245245
#if 1
246-
result = result && SynetInnerProduct16bForwardAutoTest(eps, Param(190, 490, 512, b16, f32, b16, f, t, t, aRe), f1, f2);
246+
result = result && SynetInnerProduct16bForwardAutoTest(eps, Param(128, 128, 128, b16, b16, b16, f, t, t, aRe), f1, f2);
247+
result = result && SynetInnerProduct16bForwardAutoTest(eps, Param(1, 512, 8192, b16, b16, b16, f, t, t, aId), f1, f2);
247248
#endif
248249
#else
249250
result = result && SynetInnerProduct16bForwardAutoTest(eps, Param(9, 128, 32, f32, f32, f32, f, f, f, aId), f1, f2);

0 commit comments

Comments
 (0)