MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / skips

Method skips

src/shape.cpp:220–226  ·  view source on GitHub ↗

Does the shape skip over elements?

Source from the content-addressed store, hash-verified

218
219 // Does the shape skip over elements?
220 bool skips() const
221 {
222 assert(m_lens.size() == m_strides.size());
223 if(elements() == 1)
224 return false;
225 return std::none_of(m_strides.begin(), m_strides.end(), [](auto x) { return x == 1; });
226 }
227
228 std::shared_ptr<shape_impl> copy() const { return std::make_shared<shape_impl>(*this); }
229};

Callers 1

packedMethod · 0.45

Calls 5

elementsFunction · 0.50
none_ofFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected