FilesLast commitLast update
11 days ago
17 days ago
3 months ago
17 days ago
17 days ago
14 days ago
4 months ago
17 days ago
9 days ago
26 days ago
14 days ago
9 days ago
README

Cosh

English | 简体中文

Product Support Status

Product Supported
Ascend 950PR&950DT products √
Atlas A3 products √
Atlas A2 products √
Atlas 200I/500 A2 inference products √
Atlas inference products √
Atlas training products √

Function Description

  • Interface function: performs the hyperbolic cosine operation on each element of the input matrix and outputs the result.

  • Computation formula:

outi=cosh(inputi)out_{i}=cosh(input_{i})

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
self Input Input parameter for the cosh computation, which is input_i in the formula. FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, INT16, INT32, INT64, UINT8, BOOL, COMPLEX64, COMPLEX128 ND
out Output Output parameter for the cosh computation, which is out_i in the formula. FLOAT, FLOAT16, BFLOAT16, DOUBLE, INT8, INT16, INT32, INT64, UINT8, BOOL, COMPLEX64, COMPLEX128 ND
  • Atlas inference products and Atlas training products: the BFLOAT16 data type is not supported.

Constraint Description

None

Invocation Description

Invocation Method Sample Code Description
aclnn API test_aclnn_cosh Invokes the Cosh operator through the aclnnCosh API.
GE graph mode test_geir_cosh Invokes the Cosh operator by building a graph through the operator IR.