GetAttrPointer
函数功能
获取指定索引的算子属性,返回指向此属性的指针。
函数原型
template<typename T> const T *GetAttrPointer(size_t index) const
参数说明
返回值说明
指向属性的指针。
约束说明
无。
调用示例
const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs();
const gert::ContinuousVector attr0 = runtime_attrs->GetAttrPointer<gert::ContinuousVector>(0);