This API is used to perform one_hot computation on the input self with length n to obtain an output out with the number of elements being n x k, where k is the value of numClasses.
Formulas:
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]
Parameters:
[object Object]- [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]: The UINT8 data type is not supported.
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]
- Deterministic computing:
[object Object]defaults to a deterministic implementation.
The following example is for reference only. For details, see .
[object Object]