FilesLast commitLast update
4 months ago
3 months ago
2 months ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
14 days ago
README

FresnelCos

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

  • Operator function: computes the Fresnel cosine integral C(x) = integral_0^x cos(pi*t^2/2) dt.

  • Computation formula:

C(x)=∫0xcos⁡(π2t2)dtC(x) = \int_{0}^{x} \cos\left(\frac{\pi}{2} t^{2}\right) \mathrm{d}t

Parameter Description

Parameter Name Input/Output/Attribute Description Data Type Data Format
x Input Input parameter for the Fresnel cosine integral computation, which is x in the formula. BFLOAT16, FLOAT16, FLOAT ND
y Output Output parameter of the Fresnel cosine integral computation, which is C(x) in the formula. BFLOAT16, FLOAT16, FLOAT ND

Constraint Description

  • Only the BFLOAT16, FLOAT16, and FLOAT data types are supported.
  • The number of dimensions (rank) of x ranges from 0 to 8, and 0-dimensional scalar inputs are supported.
  • Empty tensors (0 elements) are supported as inputs: the Tiling on the host side short-circuits and returns directly, and the output is an empty tensor with the same shape (handled automatically).
  • Non-contiguous tensor inputs are supported (handled automatically on the host side).
  • Dynamic shape support: dynamic shapes and dynamic ranks are supported (-1 for an unknown dimension / -2 for an unknown rank).

Invocation Description

Invocation Method Invocation Sample Description
Graph-mode invocation test_geir_fresnel_cos Invokes the FresnelCos operator through the graph mode.