根据demo魔改自己的算子,这里以实现sin(x)为例 首先拉取一个demo模板,我拉取的是加法算子 修改add_custom.cpp 中的compute函数 修改数据生成脚本 gen_data.py 运行run.sh脚本 成功界面如下