This PR enables the tensor type in model property as
"tensor_type=NHWC" or "tensor_type=NCHW". This information goes to
network_grap and layer node & manager.
Then, each layer can get the model tensor type information and it can
be used to request tensor or just using temporal tensor.
Resolves:
**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped
Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
inPlaceOptimize();
+ TensorDim::Format type =
+ (getModelTensorType().compare("NCHW") ||
+ getModelTensorType().compare("nchw") || getModelTensorType().compare(""))
+ ? TensorDim::Format::NCHW
+ : TensorDim::Format::NHWC;
+
for (auto iter = cbegin(); iter != cend(); iter++) {
auto lnode = (*iter);
/// @todo later, we can set layer tensor type differenctly with model