[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Implements the activation function. If a value in a tensor is greater than 0, the value is used. Otherwise, the product of the weight and value is used.
  • Formula:PRelu(x)=max(0,x)+amin(0,x)PRelu(x)=max(0, x) + a * min(0, x)
[object Object]

Each operator has calls. First, aclnnPreluGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnPrelu is called to perform computation.

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

    [object Object]
    • [object Object]Atlas training products[object Object] and [object Object]Atlas inference products[object Object]: The data type can be FLOAT or FLOAT16.
  • 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 computing:
    • aclnnPrelu defaults to a deterministic implementation.
[object Object]

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

[object Object]