From patchwork Thu Jun 18 09:15:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20458 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 ADFE544B58B for ; Thu, 18 Jun 2020 12:21:54 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A032268B78C; Thu, 18 Jun 2020 12:21:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5569B68B766 for ; Thu, 18 Jun 2020 12:21:47 +0300 (EEST) IronPort-SDR: GYW6KCj9sRq1bo2jbLm+AyevIdAykaeGEMQJEg6uO8y1qo1phek1DbZR2TXz65TmdtZ0Q1UNwl JQrpFvGrouTw== X-IronPort-AV: E=McAfee;i="6000,8403,9655"; a="207748158" X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="207748158" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 02:21:28 -0700 IronPort-SDR: B/5SLocl0uqJ/Jeo4VWMdMDvTyDl587zlZE7QA7cdK+lgwNyAATdyZU+QqrZy0HHBWaPqPlO4p VVNLQNQy+gSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="477130713" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.126]) by fmsmga006.fm.intel.com with ESMTP; 18 Jun 2020 02:21:27 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Thu, 18 Jun 2020 17:15:36 +0800 Message-Id: <20200618091536.8733-6-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200618091536.8733-1-ting.fu@intel.com> References: <20200618091536.8733-1-ting.fu@intel.com> Subject: [FFmpeg-devel] [PATCH 6/6] dnn-layer-math-unary-test: add unit test for atan 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Ting Fu --- tests/dnn/dnn-layer-mathunary-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/dnn/dnn-layer-mathunary-test.c b/tests/dnn/dnn-layer-mathunary-test.c index 540ea4cef5..bf77c44bbe 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -42,6 +42,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return asin(f); case DMUO_ACOS: return acos(f); + case DMUO_ATAN: + return atan(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -97,5 +99,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ACOS)) return 1; + if (test(DMUO_ATAN)) + return 1; return 0; }