GetCompileInfo

Function Usage

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

Description

T

Template parameter, which is of the CompileInfo type.

Returns

template<typename T> const T *GetCompileInfo() const;: returns a pointer to CompileInfo of the specified type T.

const void *GetCompileInfo() const;: returns a pointer to CompileInfo of any type.

Constraints

None

Examples

ge::graphStatus TilingForAdd(TilingContext *context) {
  auto ci = context->GetCompileInfo<AddCompileInfo>();  
  GE_ASSERT_NOTNULL(ci);
  ...
}