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

Function set_shape_if_empty

src/core/helpers/AutoConfiguration.h:95–104  ·  view source on GitHub ↗

Set the shape to the specified value if the current assignment is empty. * * @param[in,out] info Tensor info used to check and assign. * @param[in] shape New shape. * * @return True if the shape has been changed. */

Source from the content-addressed store, hash-verified

93 * @return True if the shape has been changed.
94 */
95inline bool set_shape_if_empty(ITensorInfo &info, const TensorShape &shape)
96{
97 if (info.tensor_shape().total_size() == 0)
98 {
99 info.set_tensor_shape(shape);
100 return true;
101 }
102
103 return false;
104}
105
106/** Set the format, data type and number of channels to the specified value if
107 * the current data type is unknown.

Callers 12

configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85
configureMethod · 0.85

Calls 1

total_sizeMethod · 0.45

Tested by

no test coverage detected