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

Method HumanString

tensorflow/compiler/jit/xla_compilation_cache.cc:75–86  ·  view source on GitHub ↗

Compute a string signature which encodes the shapes of the arguments in the supplied list.

Source from the content-addressed store, hash-verified

73// Compute a string signature which encodes the shapes of the
74// arguments in the supplied list.
75string XlaCompilationCache::Signature::HumanString() const {
76 string result = name;
77 for (const auto& a : arg_shapes) {
78 absl::StrAppend(&result, ",", DataTypeString(a.first));
79 absl::StrAppend(&result, " [", absl::StrJoin(a.second, ","), "]");
80 }
81
82 for (const auto& v : arg_values) {
83 absl::StrAppend(&result, "; ", v.DebugString());
84 }
85 return result;
86}
87
88bool XlaCompilationCache::Signature::operator==(const Signature& other) const {
89 if (name != other.name) return false;

Callers 3

BuildSignatureMethod · 0.45
CompileImplMethod · 0.45
TESTFunction · 0.45

Calls 3

StrAppendFunction · 0.50
DataTypeStringFunction · 0.50
DebugStringMethod · 0.45

Tested by 1

TESTFunction · 0.36