[Tensor] Added getters and setters for private members of TensorBase class.
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Mon, 8 Jan 2024 05:26:13 +0000 (14:26 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 12 Jan 2024 02:13:47 +0000 (11:13 +0900)
commit0dc4a22667229d8ad7162f433a57ed8fa3df0d5e
tree35f4b21ed4e44aa101bdb0808c76dc48f3610240
parentfaadfbccce1e6a795efd3755f2302167188c0f4d
[Tensor] Added getters and setters for private members of TensorBase class.

This PR adds accessors (getters) and mutators (setters) for the private data members of the TensorBase class.
This change allows TensorV2 to interact with these variables through the provided methods, improving encapsulation and making the code more maintainable.

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