Fix assertion error when Winograd convolution is used
@@ -253,8 +253,7 @@ LIBXSMM_API_DEFINITION libxsmm_dnn_layer* libxsmm_dnn_create_conv_layer(
*status = libxsmm_dnn_internal_create_conv_handle_winograd_check( handle );
if ( *status == LIBXSMM_DNN_WARN_FALLBACK ) handle->algo = LIBXSMM_DNN_CONV_ALGO_DIRECT;
}
-
- if ( handle->algo == LIBXSMM_DNN_CONV_ALGO_DIRECT ) {
+ else if ( handle->algo == LIBXSMM_DNN_CONV_ALGO_DIRECT ) {
*status = libxsmm_dnn_internal_create_conv_handle_direct( handle );
} else {
assert(0/*should not happen*/);
