aclCreateScalar
Function Usage
Creates an aclScalar.
Prototype
aclScalar *aclCreateScalar(void *value, aclDataType dataType)
Parameter Description
The definition of aclDataType is provided by AscendCL. For details, see aclDataType.
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Input |
Scalar pointer on the host. Its value will be used as the scalar. |
dataType |
Input |
Data type of a scalar. |
Returns
Created aclScalar on success; else, nullptr.
Parent topic: Basic APIs