MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / clone

Method clone

src/core/SubTensorInfo.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::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
103ITensorInfo &SubTensorInfo::set_tensor_shape(const TensorShape &shape)
104{

Callers

nothing calls this directly

Calls 1

set_valid_regionMethod · 0.45

Tested by

no test coverage detected