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

Function convert_range_pair

tests/AssetsLibrary.h:488–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486{
487template <typename T>
488inline std::vector<std::pair<T, T>>
489convert_range_pair(const std::vector<AssetsLibrary::RangePair> &excluded_range_pairs)
490{
491 std::vector<std::pair<T, T>> converted;
492 std::transform(excluded_range_pairs.begin(), excluded_range_pairs.end(), std::back_inserter(converted),
493 [](const AssetsLibrary::RangePair &p)
494 { return std::pair<T, T>(static_cast<T>(p.first), static_cast<T>(p.second)); });
495 return converted;
496}
497
498/* Read npy header and check the payload is suitable for the specified type and shape
499 *

Callers

nothing calls this directly

Calls 3

transformFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected