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

Function FusionConfigToString

tensorflow/compiler/xla/service/fusion_queue.h:30–38  ·  view source on GitHub ↗

Converts fusion config to string format.

Source from the content-addressed store, hash-verified

28
29// Converts fusion config to string format.
30static std::string FusionConfigToString(const FusionConfig& config) {
31 std::string s;
32 for (const auto& edge_list : config) {
33 for (bool edge : edge_list) {
34 absl::StrAppend(&s, edge ? "1" : "0");
35 }
36 }
37 return s;
38}
39
40// A queue interface that allows implementations to choose fusion candidates in
41// custom order.

Callers 1

RunMethod · 0.85

Calls 1

StrAppendFunction · 0.50

Tested by

no test coverage detected