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.73k stars 6.81k forks source link

[FEATURE] Add bytes conversion to NDArray #21203

Closed rbyche closed 9 months 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: