deephealthproject / eddl

European Distributed Deep Learning (EDDL) library. A general-purpose library initially developed to cover deep learning needs in healthcare use cases within the DeepHealth project.
https://deephealthproject.github.io/eddl/
MIT License
34 stars 10 forks source link

Temporary fix for memory management in eddl_onnx_import.cpp #167

Closed CostantinoGrana closed 4 years ago

CostantinoGrana commented 4 years ago

New std::vectors have ben substituted with pointers to already existing ones, and their data has been copied to a standard dynamic float[] which get deleted by the Tensor destructor.

In this way ONNX tests also work under Windows. Nothing crashes in Linux tests, nor in our machines.