From patchwork Sun Jun 28 15:34:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20668 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 2AE7E44B783 for ; Sun, 28 Jun 2020 18:40:44 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 162E068B7B6; Sun, 28 Jun 2020 18:40:44 +0300 (EEST) 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 9B85E68B79F for ; Sun, 28 Jun 2020 18:40:40 +0300 (EEST) IronPort-SDR: FTqe4ZduPAqv0W9D0CpjaJO5acyYES2b/y+e/VhzCzsCkH2iZaLmovU92B7xRPYG2qayb69vsw BT3kQH0RPp1g== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="230648478" X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="230648478" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2020 08:40:31 -0700 IronPort-SDR: S7c7LkFZ1hqvnMPr8DhUFG/zljPXc7BR6Tl5Xbmw57qVjnGvkyinuwoT5j3N1cgNHVh5J9R7NK ISJLYmH2KcWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="294655917" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.54]) by orsmga002.jf.intel.com with ESMTP; 28 Jun 2020 08:40:30 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Sun, 28 Jun 2020 23:34:38 +0800 Message-Id: <20200628153442.29074-8-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200628153442.29074-1-ting.fu@intel.com> References: <20200628153442.29074-1-ting.fu@intel.com> Subject: [FFmpeg-devel] [PATCH 08/12] dnn-layer-math-unary-test: add unit test for asinh 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 6885b4d318..90fce71a0c 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -50,6 +50,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return cosh(f); case DMUO_TANH: return tanh(f); + case DMUO_ASINH: + return asinh(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -113,5 +115,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_TANH)) return 1; + if (test(DMUO_ASINH)) + return 1; return 0; }