apache / tvm

Open deep learning compiler stack for cpu, gpu and specialized accelerators
https://tvm.apache.org/
Apache License 2.0
11.46k stars 3.41k forks source link

[Web] Add dtype and offset for CreateView in runtime #17028

Closed CharlieFRuan closed 2 months ago

CharlieFRuan commented 2 months ago

Change web runtime's NDarray.view header to include an optional dtype, and pass in relative_by_offset=0 as per https://github.com/apache/tvm/pull/16938.

Tested end-to-end in WebLLM.