MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / PathsBitfieldAsVector

Function PathsBitfieldAsVector

tensorflow/lite/experimental/ruy/test.h:1579–1591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577}
1578
1579std::vector<Path> PathsBitfieldAsVector(Path paths_bitfield) {
1580 std::vector<Path> result;
1581 std::uint32_t remaining_paths = static_cast<std::uint32_t>(paths_bitfield);
1582 std::uint32_t test_bit = 1;
1583 while (remaining_paths) {
1584 if (remaining_paths & test_bit) {
1585 result.push_back(static_cast<Path>(test_bit));
1586 }
1587 remaining_paths &= ~test_bit;
1588 test_bit <<= 1;
1589 }
1590 return result;
1591}
1592
1593std::vector<Tuning> EnumerateTuningsForPath(Path path, bool benchmark) {
1594 if (benchmark) {

Callers 1

MakeResultPathsMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected