[Tensor] Enable default copy constructor
authorJihoon Lee <jhoon.it.lee@samsung.com>
Tue, 4 Aug 2020 11:42:07 +0000 (20:42 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Mon, 10 Aug 2020 06:53:06 +0000 (15:53 +0900)
commit418dc57407161f6a0ea2da31f3f1ec22173e27c8
treeda86a654a6c564e92e0308708efed73a94869990
parent0e78263a8e2befbf296355b47b75dc988e624c6a
[Tensor] Enable default copy constructor

This patch enables default copy constructor to fix #281.

- Added sharedConstTensor for safety

**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>
26 files changed:
Applications/ReinforcementLearning/DeepQ/jni/main.cpp
nntrainer/include/activation_layer.h
nntrainer/include/bn_layer.h
nntrainer/include/conv2d_layer.h
nntrainer/include/fc_layer.h
nntrainer/include/flatten_layer.h
nntrainer/include/input_layer.h
nntrainer/include/layer.h
nntrainer/include/lazy_tensor.h
nntrainer/include/loss_layer.h
nntrainer/include/neuralnet.h
nntrainer/include/optimizer.h
nntrainer/include/pooling2d_layer.h
nntrainer/include/tensor.h
nntrainer/src/activation_layer.cpp
nntrainer/src/bn_layer.cpp
nntrainer/src/conv2d_layer.cpp
nntrainer/src/fc_layer.cpp
nntrainer/src/flatten_layer.cpp
nntrainer/src/input_layer.cpp
nntrainer/src/loss_layer.cpp
nntrainer/src/neuralnet.cpp
nntrainer/src/pooling2d_layer.cpp
nntrainer/src/tensor.cpp
test/unittest/unittest_nntrainer_layers.cpp
test/unittest/unittest_nntrainer_tensor.cpp