8000 GitHub - zhaocc1106/torch_custom_op: 实现自己的torch算子
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zhaocc1106/torch_custom_op

Repository files navigation

实现自己的torch算子

自定义算子

  • my_add: c = 2 * a +b
  • my_matmul: c = a * b,使用cublas库实现矩阵乘

安装

python3 setup.py install

测试

# 测试my_add并导出为onnx
python3 my_add_op_test.py

# 测试my_matmul并导出为onnx
python3 my_matmul_op_test.py  

About

实现自己的torch算子

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0