[onert] Set dyn_tensor_manager for static tensors (#3951)
authorHanjoung Lee <hanjoung.lee@samsung.com>
Tue, 25 Aug 2020 03:45:33 +0000 (12:45 +0900)
committerGitHub <noreply@github.com>
Tue, 25 Aug 2020 03:45:33 +0000 (12:45 +0900)
commitb9e0a04c550231f1749009099822e6abb908e6b3
tree652c34b1c2fd4d007f3bacc6f63ff2e78d2ea7d0
parenta97b1c7e6ee4c4fa9e7073d5c852a3c85fdf5721
[onert] Set dyn_tensor_manager for static tensors (#3951)

Set `dynamic_tensor_manager` for static tensors in controlflow backend.
This is needed as any static tensors could turn into dynamic.

% Same approach has been applied for cpu backend, but not for controflow
yet.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtime/onert/core/include/backend/cpu_common/StaticTensorManager.h
runtime/onert/core/src/backend/controlflow/TensorBuilder.cc
runtime/onert/core/src/backend/controlflow/TensorBuilder.h
runtime/onert/core/src/backend/cpu_common/StaticTensorManager.cc