GetCompileInfo
Description
Reserved in the Ascend C scenario.
Obtains the compilation information (CompileInfo).
This method is used to obtain the compilation information parsed by the TilingParse operator. For details, see the CompileInfo structure of a specific operator. For example, the compilation information of the Add operator is as follows:
struct AddCompileInfo {
int64_t a; // Enter a.
int64_t b; // Enter b.
};
Prototype
template<typename T> const T *GetCompileInfo() const
const void *GetCompileInfo() const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
T |
Output |
Template parameter, which is of the CompileInfo type. |
Returns
const void *GetCompileInfo() const;: returns a pointer to CompileInfo of any type.
template<typename T> const T *GetCompileInfo() const;: returns a pointer to CompileInfo of the specified type T.
Restrictions
None
Example
ge::graphStatus TilingForAdd(TilingContext *context) {
auto ci = context->GetCompileInfo<AddCompileInfo>();
GE_ASSERT_NOTNULL(ci);
...
}
Parent topic: TilingContext