[object Object]

[object Object][object Object]undefined
[object Object]
  • Description: Performs target backpropagation on the result of the API.

  • Formula:

gradTarget={gradOutput(log(target)self+1),                         logTarget=FalsegradOutputexp(target)(targetself+1),          logTarget=TruegradTarget = \begin{cases} gradOutput * (log(target) - self + 1), ~~~~~~~~~~~~~~~~~~~~~~~~~logTarget=False \\ gradOutput * exp(target) * (target - self +1), ~~~~~~~~~~logTarget=True \end{cases} [object Object]

Each operator has calls. First, [object Object] is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, [object Object] 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 validation. The following error codes may be returned.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

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

[object Object]
  • Deterministic computing:
    • The default deterministic implementation of aclnnKlDivTargetBackward is used.
[object Object]

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

[object Object]