From patchwork Mon Jun 29 14:54:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20725 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:80ca:0:0:0:0:0 with SMTP id c10csp2877848ybm; Mon, 29 Jun 2020 08:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/QzI+n0C7Vzf7L7T6ML9QncmyJ3Tf1ibKffcj0AAwuiTLIo+NDQCK3eEqEtYTTuFf6ETp X-Received: by 2002:a1c:1d6:: with SMTP id 205mr16521436wmb.2.1593442940857; Mon, 29 Jun 2020 08:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593442940; cv=none; d=google.com; s=arc-20160816; b=HYKvc2JFJIKDXNAvnJdco+eZ0ZCbRgNwkAoZOk3cwJBsgNK/VqOrDuPyAhgUOt1eKR Rg+OjNwKtDZKAnBsxDjjzvjxmL+Ou9e2I51H0MyAz9XULTgOCcyieBNylwFEU4VPAGsJ gZfBGoPNlbaonz9Zo4jfRcbRgAFri6Kzmi06KOliymXVmx3tnPtetKjtg1fZRgeKgE6U bsriCDijMneGLbSSGhS26e24P8BABmuy9pXfCz+tHvGUFLsXNPB3VkeNBS/RBtZoXV7v YcItnjGZyR6cf9qlZ1J+bvuLQxUskRGkg1u0lcJ6g7EouswyMoFXd0ERF4CsWMUZtgWx O4fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:ironport-sdr:ironport-sdr:delivered-to; bh=zC632L2a5vSti+xWJknwNGsrNzoNB/+4CFnWlNKqPqU=; b=yJhFZsiVEoY9aXBhZcNyS2SyP2eO8IZcEzRDhed+iQ8i4HOK1GQA3KzqkbiqAYws0u V/SO513vmcbPqrdtpHfEHRX18AtPNZo2TOiu9G3g432VwjEH1qjfzBA+QJPrRxUL9hTL 8xHuI9RiX1La4No2jaCYHjcGcTH1wopj27XbtFKxnfOcg4dcl1cRKFzBW6YQiydJO62C NN9LAc0mNpLCKWD5P9SD488tymkipFpsSzrTGpnxVqYDqcjZ/G7Re4cV0T3zpSMt0a1M u/WnrHEYwbhK8R9jICbNp+syudmljT+p8F9EAtpuiWuKtmCu1RuzA+gz9UpFA5cEloCt 8G1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id q23si189209wmj.107.2020.06.29.08.02.20; Mon, 29 Jun 2020 08:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7471468AB65; Mon, 29 Jun 2020 18:00:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 82FC568ACB2 for ; Mon, 29 Jun 2020 18:00:09 +0300 (EEST) IronPort-SDR: nTTxofRtahv8u5OeaAgjeKLKjkGr04Zs6eoMFQ7z7CDocltzNVm4iGMVSgnIivO5dbyzQQhrfR 02eP3igqJwDQ== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="144173141" X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="144173141" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2020 08:00:00 -0700 IronPort-SDR: dha3mp/qzk0wzLmFW9+ssU8tlG7qRz3gG9u+e6dbhLlAKb9vI1h9apvOjASgidTH9IUFVjsWfQ Do8VQstOVJPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="313069770" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.54]) by fmsmga002.fm.intel.com with ESMTP; 29 Jun 2020 07:59:59 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Jun 2020 22:54:07 +0800 Message-Id: <20200629145411.24005-8-ting.fu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200629145411.24005-1-ting.fu@intel.com> References: <20200629145411.24005-1-ting.fu@intel.com> Subject: [FFmpeg-devel] [PATCH V2 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" X-TUID: /fDptNW5yPeH Content-Length: 1431 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; }