ScalarList

Function

After this parameter is set, the input type of the automatically generated single-operator API (aclnnxxx) is aclScalarList.

Prototype

1
OpParamDef &ScalarList()

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")
    .ScalarList()