microsoft / onnxjs

ONNX.js: run ONNX models using JavaScript
Other
1.76k stars 129 forks source link

add pack/unpack support for webgl backend #266

Closed xzhu1900 closed 3 years ago

xzhu1900 commented 3 years ago

This PR includes:

  1. pack/unpack kernels to process input/output
  2. coordinates calculation and texture sampling library
  3. webgl backend check for pack/unpack mode
  4. global env variable to turn on/off pack/unpack feature
  5. unit tests for pack/unpack functionality
xzhu1900 commented 3 years ago

[yulong] check test-runner to see if the test falls back to unpack mode and runs fine.

xzhu1900 commented 3 years ago

[du] and add a new config to run both pack mode and unpack mode.


In reply to: 790217136 [](ancestors = 790217136)