From patchwork Mon Jun 29 14:54:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Ting" X-Patchwork-Id: 20732 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:80ca:0:0:0:0:0 with SMTP id c10csp2875997ybm; Mon, 29 Jun 2020 08:00:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTsksuqDN4Xb8UQ9YMc25Bm4vR/HKSncxk2llXTUFDo4H/h+br7Qj2wi+6hi5ccFAN2bVW X-Received: by 2002:adf:8104:: with SMTP id 4mr17677772wrm.18.1593442816115; Mon, 29 Jun 2020 08:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593442816; cv=none; d=google.com; s=arc-20160816; b=K+ugHt56yyqy0pUeSczQs83Q+ofZYV223f3Aq68AzITcQa+xAB6EqeJqAfm9+YeiQE w7SdjlkSV4xBUuIX1YVFwG11J9vrbaner63UpU4VjHNMA83GZb1aw4coTh3wo/R3dqrh rGWa44qzoCpdgk+cPW3zkAY0e5WH6peZmQIgoCPYI82hjya7c6p/H4wPhbE0HgkB91py +y0KS3AVYtVbq2KXay7MrqYWm3PxYYxz9FRdBsdVlaNLpLINnRZ4HtGF+CWo6wsqQlXZ 9Rcynyu1L3LRP8ZpZpAJgk8b2oZEyMaTHoHKgtJeWLTuCacSOHGDeLOc1fCbQqbEwHQG 38nw== 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=kfzZbcS0GLiEHPLFpNPKZyUSXQ6ExHP33goeOlvSxSs=; b=EXv1lv5NFzfQGQqFgsl9xaNCro0vg2FRw7kYwj4gmZCEKB8rTdJ3aYq4Eiw41b9PpO dgYaPIxtw3wRinSmPnnrMjKg69wCOS9Ebln7elNyE8rZdlk+k4fh2X6nIdakuXyG6nQP unuT4tFA04Fyp+/fhiBwNZVaSZsnQP9xTVKKNydSwKLjXvusG7OTNW9gmsGh93vDUlGS Do9/7rM+uCOJWnEpHx+qnyasg0jwIPbEFdxz14W5vPQy7vCF3mqy8duZUQ22X5f9YREP Z1uNj86y0esdKtEU9kf4NiAJ/QEIoaQpSYWK5N/XtnPExeqyWCUuemIh1DDT9cc5Yp5a 7Dyw== 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 k83si192694wma.39.2020.06.29.08.00.15; Mon, 29 Jun 2020 08:00:16 -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 8A63268A646; Mon, 29 Jun 2020 18:00:05 +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 97C616880EF for ; Mon, 29 Jun 2020 17:59:57 +0300 (EEST) IronPort-SDR: ZcIjdz/z648dnGmKH9h57HizTtOFzD6OKKYeNgMqtXJ3RtDyDg3KtoDF0IL8+1X/TqvpOtQzV0 6fML7qI8TFFQ== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="144173127" X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="144173127" 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 07:59:55 -0700 IronPort-SDR: gFMiWLLOryEGYvzlII+VzJwiMYql/gqomQ2q7h8qGljoZmu9AB0jcVatcKUhWfmeMp1uaz5F1n BoDYAka5Byow== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,295,1589266800"; d="scan'208";a="313069743" Received: from semmer-ubuntu.sh.intel.com ([10.239.159.54]) by fmsmga002.fm.intel.com with ESMTP; 29 Jun 2020 07:59:54 -0700 From: Ting Fu To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Jun 2020 22:54:01 +0800 Message-Id: <20200629145411.24005-2-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 02/12] dnn-layer-math-unary-test: add unit test for sinh 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: pbc/BtVAZYb3 Content-Length: 1427 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 bf77c44bbe..a1ff05e5fb 100644 --- a/tests/dnn/dnn-layer-mathunary-test.c +++ b/tests/dnn/dnn-layer-mathunary-test.c @@ -44,6 +44,8 @@ static float get_expected(float f, DNNMathUnaryOperation op) return acos(f); case DMUO_ATAN: return atan(f); + case DMUO_SINH: + return sinh(f); default: av_assert0(!"not supported yet"); return 0.f; @@ -101,5 +103,7 @@ int main(int agrc, char **argv) return 1; if (test(DMUO_ATAN)) return 1; + if (test(DMUO_SINH)) + return 1; return 0; }