module 'triton.language' has no attribute 'extract_slice'

问题现象

跑算子时有module 'triton.language' has no attribute 'extract_slice'的报错

问题根因

triton-ascend高版本(>=3.2.1)的接口移动到了triton.language.extra.cann.extension中

解决方案

后续版本会更新到3.2.1,并对代码进行修改 如果使用3.2.0,则仍可以使用tl.extract_slice这种调用方式