| 90 | } |
| 91 | |
| 92 | std::unique_ptr<ITensorInfo> SubTensorInfo::clone() const |
| 93 | { |
| 94 | // Clone creates a TensorInfo object from SubTensorInfo's parent which will conclude to a TensorInfo |
| 95 | // For now it does not make sense to copy a SubTensorInfo explicitly |
| 96 | ARM_COMPUTE_ERROR_ON(_parent == nullptr); |
| 97 | auto clone_obj = _parent->clone(); |
| 98 | clone_obj->set_tensor_shape(_tensor_shape); |
| 99 | clone_obj->set_valid_region(_valid_region); |
| 100 | return clone_obj; |
| 101 | } |
| 102 | |
| 103 | ITensorInfo &SubTensorInfo::set_tensor_shape(const TensorShape &shape) |
| 104 | { |
nothing calls this directly
no test coverage detected