Tq/revise asinh (#6498)

* update spec

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* use RTTI macro

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* fix op scope typo

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* simplify evaluate template function

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* override validate_and_infer_types() to align with spec

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add visitor API test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add type_prop test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add SLT asinh test in cpu/gpu plugin

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* change `T` in the spec to *T*

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* refector spec according to Cos

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Support element type of integral

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Add new cpp files into CMakeLists.txt

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>
This commit is contained in:
Tingqian Li authored and GitHub committed 2021-07-08 07:18:09 +03:00
1 parent 35d9bd0f63
commit 340583fa35
15 files changed
+89 -34

No files matched your search

+16 -20
View File
@@ -4,33 +4,29 @@
**Category**: Arithmetic unary operation
**Short description**: *Asinh* performs element-wise hyperbolic inverse sine (arcsinh) operation with given tensor.
**Short description**: *Asinh* performs element-wise inverse hyperbolic sine operation (arcsinh) on a given input tensor.
**Attributes**:
No attributes available.
**Inputs**
* **1**: A tensor of type *T*. **Required.**
**Outputs**
* **1**: The result of element-wise asinh operation. A tensor of type *T*.
**Types**
* *T*: any floating point type.
*Asinh* does the following with the input tensor *a*:
**Detailed description**: *Asinh* performs element-wise inverse hyperbolic sine operation on a given input tensor, based on the following mathematical formula:
\f[
a_{i} = asinh(a_{i})
\f]
**Examples**
**Attributes**: *Asinh* operation has no attributes.
*Example 1*
**Inputs**
* **1**: A tensor of type *T* and arbitrary shape. **Required.**
**Outputs**
* **1**: The result of element-wise *Asinh* operation. A tensor of type *T* and the same shape as input tensor.
**Types**
* *T*: any numeric type.
**Example**
```xml
<layer ... type="Asinh">