Skip to content

Paddle Tensor Computation #1000

@hedaoyuan

Description

@hedaoyuan

About Paddle Tensor Computation
https://github.com/hedaoyuan/Paddle/tree/tensor_doc/paddle/math/doc

当前Paddle Tensor Compute主要Code在BaseMatrix中,BaseMatrix在函数定义,功能扩展和性能优化上都有不足,所以新增TensorExpression模块来解决并替换BaseMatrix。后续在Refactoring Computation API #977 的时候尽量使用TensorExpression中的实现。

  1. 函数定义上
    TensorExpression能够简化代码实现,比如上面链接中的sgdUpdate例子。
  2. 功能扩展上
    BaseMatrix受限于 hl_matrix_ops.cuh一个表达式中最多只能支持4个element,而TensorExpression没有限制。
  3. 性能优化上
    TensorExpression可以通过Lazy Assignment将多条表达式在一个Kernel里面展开执行。

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions