apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.79k stars 6.79k forks source link

Add bytes conversion to NDArray #21202

Closed rbyche closed 1 year ago

rbyche commented 1 year ago

Description

Add bytes conversion to NDArray. The newly added NDArray's 'asbytes' and 'from_buffer' are completely equivalent to numpy's 'tobytes' and 'frombuffer', respectively. These features make better use of NDArray.

Checklist

Essentials

Changes

Comments

mxnet-bot commented 1 year ago

Hey @rbyche , Thanks for submitting the PR All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands: