pdidev / pdi

The PDI Data Interface
https://pdi.dev
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

PDI pybind11 does a copy when creating a numpy array #404

Open jbigot opened 2 years ago

jbigot commented 2 years ago

In GitLab by @agueroud on Jan 17, 2022, 11:20

I am having memory issues when using python through PDI. I think that there is a copy that is done in the to_python function. In the previously mentioned function, you use the pybind11::array constructor that does a copy.

You can check this issue too about constructing an pybind11::array without a copy.

(Karol, I didn't do any tests with massif-visualizer :pager: )