[Tensor] Change Add_i to have alpha signature
authorJihoon Lee <jhoon.it.lee@samsung.com>
Mon, 15 Jun 2020 06:22:54 +0000 (15:22 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 15 Jun 2020 10:01:58 +0000 (19:01 +0900)
commitc7c1e95d64ee075f2cf3e97af97fabbd76581de5
tree43a609d374fb56644608fc1628ffa6c5aae3546f
parentb7257b733ea083cdf12eb873e8fdefc99b16b490
[Tensor] Change Add_i to have alpha signature

**Changes proposed in this PR:**
- `Add_i(Tensor &T, float alpha)` for coefficient multiplication
- Change test accordingly
- Optimize `blas` implementation for `multiply_i`

See also: #166

**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/include/lazy_tensor.h
nntrainer/include/tensor.h
nntrainer/src/lazy_tensor.cpp
nntrainer/src/tensor.cpp
test/unittest/unittest_nntrainer_lazy_tensor.cpp
test/unittest/unittest_nntrainer_tensor.cpp