Scalar
Function
After this parameter is set, the input type of the automatically generated single-operator API (aclnnxxx) is aclScalar.
Prototype
1 | OpParamDef &Scalar() |
Parameters
None
Returns
OpParamDef operator definition. For details, see OpParamDef.
Restrictions
- 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.
- Call a single-operator API (aclnnxxx) indirectly (single-operator calling in the PyTorch framework).
Example
1 2 | this->Input("x") .Scalar() |
Parent topic: OpParamDef