[object Object]

[object Object][object Object]undefined
[object Object]
  • Description:

    This operator is a mathematical operation of converting probability to log-odds. It is often used for inverse transformation of probability values. It can convert a probability value between 0 and 1 into a real number.

  • Formula:

    yi=ln(zi1zi)y_i = \ln \left( \frac{z_i}{ 1 -z_i} \right)

    Where:

    zi={eps,if xi<epsxi,if epsxi1eps1eps,if xi>1epsz_i = \begin{cases} \text{eps}, & \text{if } x_i < \text{eps} \\ x_i, & \text{if } \text{eps} \leq x_i \leq 1 - \text{eps} \\ 1 - \text{eps}, & \text{if } x_i > 1 - \text{eps} \end{cases}
[object Object]

Each operator has calls. First, aclnnLogitGetWorkspaceSize is called to obtain the input parameters and compute the workspace size required by the process. Then, aclnnLogit is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown:

    [object Object]
[object Object]
  • Parameters:

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic compute:

    • aclnnLogit defaults to a deterministic implementation.
  • If the value of input is not in the range [0, 1], NaN is output. If the value is 0, -Inf is output. If the value is 1, Inf is output.

  • If eps is greater than 1, NaN is output. If eps is 1, Inf is output.

[object Object]

The following example is for reference only. For details, see .

[object Object]