[Tensor] Include Half Tensor when FP16 is enabled
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Fri, 17 Nov 2023 08:15:19 +0000 (17:15 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 22 Nov 2023 05:45:11 +0000 (14:45 +0900)
**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 <dhyeon.jeong@samsung.com>
nntrainer/tensor/meson.build

index b14ae152da24d834602764318be5f761f0eb221c..1790a8b617dce3fcbc973f04d32dc6eb3c356982 100644 (file)
@@ -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