[TensorV2] Reshape functionality
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Fri, 19 Jan 2024 04:49:37 +0000 (13:49 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 24 Jan 2024 23:15:24 +0000 (08:15 +0900)
commit688ff453b6d231964be056fcad58d7823d65bdf4
tree65799f4e6b25e0146b5d810ee364b8f181ebbe74
parent74c7d5ba2204ab5db6a7e648520c45d35683dff1
[TensorV2] Reshape functionality

This commit includes the implementation of reshaping the tensor to the given TensorDim in the following conditions.

1. Tensor to reshape is contiguous.
2. The length of data should match with the new TensorDim.

**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/tensor_base.cpp
nntrainer/tensor/tensor_base.h
nntrainer/tensor/tensor_v2.cpp
nntrainer/tensor/tensor_v2.h