CEA-LIST / N2D2

N2D2 is an open source CAD framework for Deep Neural Network simulation and full DNN-based applications building.
Other
146 stars 36 forks source link

Bug ONNX #101

Closed christelleonet closed 2 years ago

christelleonet commented 2 years ago

Hello. After cmake, when I compile, i have one error. May you help me ? Thanks

[...] In file included from N2D2/src/Export/ONNX/ONNX_CellExport.cpp:31:0: N2D2/include/Export/ONNX/ONNX_CellExport.hpp:108:28: error: specialization of 'template<class T> static onnx::TensorProto::DataType N2D2::ONNX_CellExport::ONNX_dataType()' in different namespace [-fpermissive] ::ONNX_dataType<float>(); ^ N2D2/include/Export/ONNX/ONNX_CellExport.hpp:74:40: error: from definition of 'template<class T> static onnx::TensorProto::DataType N2D2::ONNX_CellExport::ONNX_dataType()' [-fpermissive] static onnx::TensorProto::DataType ONNX_dataType(); [...]

olivierbichler-cea commented 2 years ago

Hello, The error is due to GCC 5, which is currently not included in our CI system. It as been fixed in the latest commit (please be patient, it will be pushed on Github shortly, after our internal CI passes). Thanks