From: Donghyeon Jeong Date: Fri, 17 Nov 2023 08:15:19 +0000 (+0900) Subject: [Tensor] Include Half Tensor when FP16 is enabled X-Git-Tag: accepted/tizen/7.0/unified/20240830.164841~413 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bd294d614b40683eaf11a2a6e4066f498e3e27f;p=platform%2Fcore%2Fml%2Fnntrainer.git [Tensor] Include Half Tensor when FP16 is enabled **Changes proposed in this PR:** - Edit meson.build file to add half_tensor.cpp when enable_fp16 is true **Self-evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: Donghyeon Jeong --- diff --git a/nntrainer/tensor/meson.build b/nntrainer/tensor/meson.build index b14ae152..1790a8b6 100644 --- a/nntrainer/tensor/meson.build +++ b/nntrainer/tensor/meson.build @@ -35,6 +35,9 @@ arch = target_machine.cpu_family() if get_option('platform') == 'android' or arch == 'aarch64' tensor_sources += 'blas_neon.cpp' +endif + +if get_option('enable-fp16') tensor_sources += 'half_tensor.cpp' endif