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

Bug in Tensor::getDeviceID #268

Closed MicheleCancilla closed 3 years ago

MicheleCancilla commented 3 years ago

Describe the bug Bug in Tensor::getDeviceID. device used in place of dev.

https://github.com/deephealthproject/eddl/blob/676c91823e9483589fc05e51a6191755b27a0e49/src/tensor/tensor.cpp#L580-L585

How to Fix else if ((dev >= DEV_GPU) && (dev < DEV_FPGA)) { return 1; }

salvacarrion commented 3 years ago

Fixed: 8c1560c97cb0872f4febe8406c772ca1c611bac8