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

Error when trying to instantiate a Where layer #284

Closed simleo closed 3 years ago

simleo commented 3 years ago

Code:

#include "eddl/apis/eddl.h"

using namespace eddl;

int main(int argc, char **argv) {
    layer l1 = Input({5});
    layer l2 = Input({5});
    layer c = Input({5});
    layer w = Where(l1, l2, c);
}

Output:

==================================================================
⚠️  This layers only can have one parent layer (input2) ⚠️
==================================================================

terminate called after throwing an instance of 'std::runtime_error'
  what():  RuntimeError: input2
Aborted (core dumped)
salvacarrion commented 3 years ago

Fixed. 58b953efd1ac6ea7e54d30cab7a8157904f4dff3