UnknownShapeFormat (Deprecated)
Function Usage
- This API has been deprecated and will be removed in later versions. Do not use this API. You do not need to set the format for the dynamic or static shape separately. Instead, you can use the Format API to set the format.
- If you use this API and enable the -Werror -Wall compilation option to handle all warnings as errors, a compilation error will be reported. In this case, you can add the -Wno-deprecated compilation option to eliminate the warnings. However, if the API is removed in later versions, a compilation error may be reported. Therefore, you are advised not to use this API. Instead, use Format to set the compilation option.
The compilation options are added to the cust_optiling and cust_opproto compilation targets in the op_host/CMakeLists.txt file of the custom operator project directory. The following is an example:
target_compile_options(cust_optiling PRIVATE -Wno-deprecated )
Sets the default value of Format when the shape is unknown.
Prototype
OpParamDef &UnknownShapeFormat(std::vector<ge::Format> formats);
Parameters
Returns
OpDef operator definition. For details, see OpDef.
Constraints
None
Parent topic: OpParamDef