Hpt
Home
GitHub
crate.io
Benchmarks
Home
GitHub
crate.io
Benchmarks
  • Dev Guide

    • allocation
    • New Type
    • type promote
    • pointer
    • test cases
    • iterator
    • New op
    • New arch support

How to add new Tensor operator

Things to know

Tensor operators are define in tensor-traits crate. If you want to implement new Tensor operator, you may need to create a new trait if there is no suitable trait for the new operator.

How

  1. Implement the trait method at here based on what backend you want to implement, mostly, you should implement for all backends.

  2. Ensure performance is ideal by comparing with other frameworks

  3. Write test cases at here. Make sure to follow the Dev Guide test cases rules.

  4. commit and make a pull request

最近更新: 2025/6/24 21:23
Contributors: Jianqoq
Prev
iterator
Next
New arch support