AutoContiguous
Function
When this parameter is configured, if the inputs (of the aclTensor type) of the single-operator API (aclnnxxx) are non-contiguous tensors, the framework automatically convents them into contiguous tensors.
This API is supported only in the following scenarios:
- Develop a single-operator calling application by executing single-operator APIs.
- Calling a single-operator API (aclnnxxx) indirectly: single-operator calling in the PyTorch framework.
Prototype
1 | OpParamDef &AutoContiguous() |
Parameters
None
Returns
OpParamDef operator definition. For details, see OpParamDef.
Constraints
None
Parent topic: OpParamDef