[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs the Sigmoid operation on the input tensor.

  • Formula:

out=11+einputout = {\frac{1} {1+{e}^{-input}}} [object Object]
  • aclnnSigmoid and aclnnInplaceSigmoid implement the same function in different ways. Select a proper operator based on your requirements.
    • aclnnSigmoid: An output tensor object needs to be created to store the computation result.
    • aclnnInplaceSigmoid: No output tensor object needs to be created, and the computation result is stored in the memory of the input tensor.
  • Each operator has calls. First, aclnnSigmoidGetWorkspaceSize or aclnnInplaceSigmoidGetWorkspaceSize is called to obtain input parameters and compute the required workspace size based on the computation process. Then, aclnnSigmoid or aclnnInplaceSigmoid is called to perform computation.
[object Object]
[object Object]
[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]
  • Parameters:

    [object Object]
    • [object Object]Atlas inference products[object Object] and [object Object]Atlas training products[object Object]: The data type can be FLOAT, FLOAT16, DOUBLE, COMPLEX64, or COMPLEX128.
  • 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:
    • aclnnSigmoid and aclnnInplaceSigmoid default to a deterministic implementation.
[object Object]

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

Example of calling aclnnSigmoid:

[object Object]

Example of calling aclnnInplaceSigmoid:

[object Object]