You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Perform partial convolution: start at @offset and compute @samples points
403
-
*/
404
394
voidFloatArray::convolve(FloatArray operand2, FloatArray destination, int offset, int samples){
405
-
ASSERT(destination.size >= samples, "Destination array too small");
395
+
ASSERT(destination.size >= size + operand2.size -1, "Destination array too small");//TODO: change this condition to the actual size being written(will be samples+ tail)
406
396
#ifdef ARM_CORTEX
407
397
//TODO: I suspect a bug in arm_conv_partial_f32
408
398
//it seems that destination[n] is left unchanged for n<offset
409
399
//and the result is actually stored from destination[offset] onwards
410
-
//that is, in the same position where they would be if a full convolution was performerd
400
+
//that is, in the same position where they would be if a full convolution was performed.
401
+
//This requires (destination.size >= size + operand2.size -1). Ideally you would want destination to be smaller
0 commit comments