How to convert numpy arrays to bytes/BytesIO without copying?

后端 未结 0 644
闹比i
闹比i 2021-01-18 15:39

I want to upload a numpy array to S3 using the boto3 package which expects a bytes object. I want to convert this numpy array to bytes but without any copying due to memory

相关标签:
回答
  • 消灭零回复
提交回复
热议问题