智能客服
你问我答,随时在线为你解决问题

























获取指定索引的算子属性,返回指向此属性的指针。
template<typename T> const T *GetAttrPointer(size_t index) const
| 参数 | 输入/输出 | 说明 |
|---|---|---|
| T | 指定的输出类型 | 属性类型。 |
| index | 输入 | 属性在IR原型定义中的索引。 |
指向属性的指针。
无
#include "register/op_def_registry.h"
namespace optiling {
static ge::graphStatus TilingFunc(gert::TilingContext* context)
{
const gert::RuntimeAttrs* runtime_attrs = context->GetAttrs();
const gert::ContinuousVector* attr0 = runtime_attrs->GetAttrPointer<gert::ContinuousVector>(0);
return ge::GRAPH_SUCCESS;
}
} 智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功