-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
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中的实现。
- 函数定义上
TensorExpression能够简化代码实现,比如上面链接中的sgdUpdate例子。 - 功能扩展上
BaseMatrix受限于hl_matrix_ops.cuh一个表达式中最多只能支持4个element,而TensorExpression没有限制。 - 性能优化上
TensorExpression可以通过Lazy Assignment将多条表达式在一个Kernel里面展开执行。
Metadata
Metadata
Assignees
Labels
No labels