From patchwork Fri Jan 22 02:55:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guo, Yejun" X-Patchwork-Id: 25066 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 4176844AB52 for ; Fri, 22 Jan 2021 04:57:14 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0B6FB68A0EF; Fri, 22 Jan 2021 04:57:14 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AF9B768816E for ; Fri, 22 Jan 2021 04:57:06 +0200 (EET) IronPort-SDR: FTcJwkL1EwXzmRrxe7PkFVGAxUt/Vh3G5ihIJPOnx3zqOs9YUZmjGDtHBm/ydOFgRxZNtiV9V0 R/CPrEQSU4Yw== X-IronPort-AV: E=McAfee;i="6000,8403,9871"; a="264202265" X-IronPort-AV: E=Sophos;i="5.79,365,1602572400"; d="scan'208";a="264202265" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2021 18:57:04 -0800 IronPort-SDR: YG5PIIz5YjPXs312T5NDKDMsgXx+eyqYcM25q133KL4fT9t8VMbJUqwivjfsJtPfDwB3I8YCds Ui80KZiNLl9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,365,1602572400"; d="scan'208";a="356757911" Received: from yguo18-skl-u1604.sh.intel.com ([10.239.159.53]) by fmsmga008.fm.intel.com with ESMTP; 21 Jan 2021 18:57:03 -0800 From: "Guo, Yejun" To: ffmpeg-devel@ffmpeg.org Date: Fri, 22 Jan 2021 10:55:10 +0800 Message-Id: <20210122025510.16419-1-yejun.guo@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH 1/2] dnn-layer-conv2d-test.c: remove dependency of dnn_native_class X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: yejun.guo@intel.com MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- tests/dnn/dnn-layer-conv2d-test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/dnn/dnn-layer-conv2d-test.c b/tests/dnn/dnn-layer-conv2d-test.c index 378a05eafc..b623ddac0d 100644 --- a/tests/dnn/dnn-layer-conv2d-test.c +++ b/tests/dnn/dnn-layer-conv2d-test.c @@ -25,8 +25,6 @@ #define EPSON 0.00001 -extern const AVClass dnn_native_class; - static int test_with_same_dilate(void) { // the input data and expected data are generated with below python code. @@ -99,7 +97,7 @@ static int test_with_same_dilate(void) float bias[2] = { -1.6574852, -0.72915393 }; NativeContext ctx; - ctx.class = &dnn_native_class; + ctx.class = NULL; ctx.options.conv2d_threads = 1; params.activation = TANH; @@ -203,7 +201,7 @@ static int test_with_valid(void) float bias[2] = { -0.4773722, -0.19620377 }; NativeContext ctx; - ctx.class = &dnn_native_class; + ctx.class = NULL; ctx.options.conv2d_threads = 1; params.activation = TANH;