From patchwork Sun Jun 28 15:34:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20673 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 7723644B783 for ; Sun, 28 Jun 2020 18:40:51 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5BABD68B7B7; Sun, 28 Jun 2020 18:40:51 +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 503D668B7B6 for ; Sun, 28 Jun 2020 18:40:43 +0300 (EEST) IronPort-SDR: JOK7Vq3xfJvsF3UuZQe9spFr4mlQayc9haOterppVwDRmiTqR4Mdi3cIRDQrwd4UTeWOs8DIjl 2DmsTP5ryokg== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="230648492" X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="230648492" 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:35 -0700 IronPort-SDR: epbf1rpQIP/GVB4PY8szyPG17x4ZUucmLXe8BYJYb3w/NqTsHX4PrHQRmG/wzcp3K5wUyBqh48 ItFGyi/F4Agg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,291,1589266800"; d="scan'208";a="294655943" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.54]) by orsmga002.jf.intel.com with ESMTP; 28 Jun 2020 08:40:34 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Sun, 28 Jun 2020 23:34:42 +0800 Message-Id: <20200628153442.29074-12-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 12/12] dnn-layer-math-unary-test: add unit test for atanh 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 5587e47ad5..1815f79f34 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -54,6 +54,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return asinh(f); case DMUO_ACOSH: return acosh(f); + case DMUO_ATANH: + return acosh(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -121,5 +123,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ACOSH)) return 1; + if (test(DMUO_ATANH)) + return 1; return 0; }