From 77e56f150048c60def3a0174c2499447c10835fe Mon Sep 17 00:00:00 2001 From: Eunju Yang Date: Thu, 5 Sep 2024 16:12:35 +0900 Subject: [PATCH] [ Tizen7.0 ] Include neuralnet.h in -dev header - Update the code to include `neuralnet.h` in -dev header. - Some applications, e.g., ReinforcementLearning uses `forwarding` and `backwarding` directly. To support it, this commit adds the header into dev package. **Self-evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: Eunju Yang --- debian/nntrainer-dev.install | 2 ++ nntrainer/models/meson.build | 4 +++- packaging/nntrainer.spec | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/nntrainer-dev.install b/debian/nntrainer-dev.install index fea2a1b5b5..ebb4a52db9 100644 --- a/debian/nntrainer-dev.install +++ b/debian/nntrainer-dev.install @@ -42,3 +42,5 @@ /usr/include/nntrainer/util_func.h /usr/include/nntrainer/fp16.h /usr/include/nntrainer/util_simd.h +# model +/usr/include/nntrainer/neuralnet.h diff --git a/nntrainer/models/meson.build b/nntrainer/models/meson.build index 1579afd0b7..a941dab894 100644 --- a/nntrainer/models/meson.build +++ b/nntrainer/models/meson.build @@ -5,7 +5,9 @@ model_sources = [ 'dynamic_training_optimization.cpp', ] -model_headers = [] +model_headers = [ + 'neuralnet.h' +] foreach s : model_sources nntrainer_sources += meson.current_source_dir() / s diff --git a/packaging/nntrainer.spec b/packaging/nntrainer.spec index deaafebd1b..f7f5d1b4d8 100644 --- a/packaging/nntrainer.spec +++ b/packaging/nntrainer.spec @@ -576,6 +576,8 @@ cp -r result %{buildroot}%{_datadir}/nntrainer/unittest/ %endif %endif %{_includedir}/nntrainer/acti_func.h +# model headers +%{_includedir}/nntrainer/neuralnet.h %files devel-static