[Trivial] Use if instead of template
authorJihoon Lee <jhoon.it.lee@samsung.com>
Fri, 5 Nov 2021 09:03:46 +0000 (18:03 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 16 Nov 2021 07:46:20 +0000 (16:46 +0900)
commit59c1eebf9f0bf80bfec197fcf443e96805f9801e
treef5bbcf2dd3afdfe94937f82a030cf4ed43ce1c64
parente46917b2811f84be7f318f32142ef0d07298a84f
[Trivial] Use if instead of template

This patch changes template to if constexpr. There seems to be false
positive with cppcheck with previous implementation, but do not need to
bother by a code used only in very small places.

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/tensor/tensor_pool.cpp