1024programmer News Python memory structure_Chen Tianqi: The Python API of memory tensor structure DLPack is coming

Python memory structure_Chen Tianqi: The Python API of memory tensor structure DLPack is coming

Chen Tianqi:Python API of memory tensor structure DLPack is here

Xinzhiyuan 2021-02-28 14:25:22

b54238849cf05caf04f90aa9a856c3a5.png

[New Zhiyuan Guide] DLPack is an open memory tensor structure , used to share tensors between frameworks , Recently, developer Chen Tianqi updated social media to introduce in detail the addition of Contents of the Python API, semantics, and implementation details.

Do you know DLPack :

e5e7273526e4a6c1c1156c0cfb5c9578.png

Deep learning practitioners will more or less understand ,Deep learning frameworks such as Tensorflow and PyTorch, Provides a powerful toolbox for rapid prototyping and model deployment for deep learning.

But ,unfortunately,their ease of use often comes at the cost of fragmentation:

they are limited to Use each framework individually ,if the frameworks are vertically integrated,then the development flow can work for common use cases,but in reality,breaking the box can be very tricky.

One workaround is to , directly pass tensors from one frame to another in memory, without any data duplication or copying.

And DLPack,is an intermediate memory representation standard for tensor data structures,It is an open memory tensor structure,for sharing between frameworks tensor.

It provides a simple, portable memory data structure :

e914a90075c3ea79df4eb1d61372f2e6.png

DLPack enables :

in deep learning framework Operators can be shared more easily between operators.

Easier to wrap vendor-level operator implementation , Allows for collaboration when new devices/operations are introduced.

Fast exchange backend implementation , such as different versions of BLAS

For end users , this can bring more operator , and can be mixed between frameworks.

68e7260d1654c4a0357347d3352afb71.png

Download address:

https://gitee.com/mirrors/DLPack

In addition,DLPack developer It is not intended to implement Tensor and Ops, but to use it as a common bridge to reuse tensors and operations across frameworks.

In addition,Recently,DLPack developer Chen Tianqi updated a Git ,titled:”Add Python API, semantics and implementation details for DLPack” , where the details of the addition are discussed, and what to reference from DLPack itself.

At the same time,Chen Tianqi also plans to import some documents into DLPack,Currently,DLPack does not have any documentation about Python-level API.

d75dd37bcd24f65c57e8fbdc355110eb.png

Interested friends can go to the following address to take a look

https://github.com/data-apis/consortium-feedback/issues/1

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/python-memory-structure_chen-tianqi-the-python-api-of-memory-tensor-structure-dlpack-is-coming/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索