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

Method collapse

arm_compute/core/TensorShape.h:138–144  ·  view source on GitHub ↗

Collapse the first n dimensions. * * @param[in] n Number of dimensions to collapse into @p first * @param[in] first Dimensions into which the following @p n are collapsed. */

Source from the content-addressed store, hash-verified

136 * @param[in] first Dimensions into which the following @p n are collapsed.
137 */
138 void collapse(size_t n, size_t first = 0)
139 {
140 Dimensions::collapse(n, first);
141
142 // Make sure all empty dimensions are filled with 1
143 std::fill(_id.begin() + _num_dimensions, _id.end(), 1);
144 }
145 /** Shifts right the tensor shape increasing its dimensions
146 *
147 * @param[in] step Rotation step

Callers 1

collapsed_fromMethod · 0.45

Calls 3

fillFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected