Scalar
Function Usage
After this parameter is set, the input type of the automatically generated single-operator API (aclnnxxx) is aclScalar.
This parameter can be configured only for operator inputs.
This API is supported only in the following scenarios:
- Develop a single-operator calling application by executing single-operator APIs.
- Indirectly call a single-operator API (aclnnxxx): single-operator calling in the PyTorch framework.
Prototype
OpParamDef &Scalar();
Parameters
None
Returns
OpParamDef operator definition. For details, see OpParamDef.
Constraints
None
Example
this->Input("x")
.Scalar()
Parent topic: OpParamDef