aclCreateScalar

Function Usage

Creates an aclScalar.

Prototype

aclScalar *aclCreateScalar(void *value, aclDataType dataType)

Parameters

The definition of aclDataType is provided by AscendCL. For details, see aclDataType in Application Development APIs.

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.