GetDynamicInputOffset
函数功能
根据算子原型定义中的输入索引获取对应的动态输入Tensor的offset。
说明: 该接口为预留接口,为后续的功能做保留,当前版本暂不支持。
函数原型
int64_t GetDynamicInputOffset(const size_t ir_index, const size_t relative_index) const
参数说明
该输入实例化后的相对index,例如某个DYNAMIC_INPUT实例化了3个输入,那么relative_index的有效范围是[0,2]。 |
返回值说明
指定的输入Tensor的offset信息。ir_index或relative_index非法或Tensor不携带非连续描述信息时,返回-1。
约束说明
无
调用示例
ge::graphStatus TilingForMul(TilingContext *context) {
auto dynamic_input_offset_0 = context->GetDynamicInputOffset(0);
...
}