[Dataset] Rework func dataset to samplewise
authorJihoon Lee <jhoon.it.lee@samsung.com>
Tue, 10 Aug 2021 10:56:15 +0000 (19:56 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 24 Aug 2021 03:38:39 +0000 (12:38 +0900)
commitcff87b3cb2f309db2c0fa111cd789eacfffe2a41
tree06a6efbefe184accf31458d79d0dee95348d9166
parent90843d1232615061ff864d7ebd4341a927ebf88d
[Dataset] Rework func dataset to samplewise

**Changes proposed in this PR:**
- Fix bugs in Tensor::Map
- Add shortcut for the Tensor::updateBatch
- Add func_data_producer with sample

**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/dataset/func_data_producer.cpp
nntrainer/dataset/func_data_producer.h
nntrainer/layers/split_layer.cpp
nntrainer/tensor/tensor.cpp
nntrainer/tensor/tensor.h
test/unittest/datasets/data_producer_common_tests.cpp
test/unittest/datasets/unittest_func_data_producer.cpp
test/unittest/unittest_nntrainer_tensor.cpp