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

Function AddComma

tensorflow/core/framework/op_def_util.cc:496–502  ·  view source on GitHub ↗

Add a comma to *s every call but the first (*add_comma should be initialized to false).

Source from the content-addressed store, hash-verified

494// Add a comma to *s every call but the first (*add_comma should be
495// initialized to false).
496void AddComma(string* s, bool* add_comma) {
497 if (*add_comma) {
498 strings::StrAppend(s, ", ");
499 } else {
500 *add_comma = true;
501 }
502}
503
504// Will add the `name` from arg if name is true.
505void AddName(string* s, bool name, const OpDef::ArgDef& arg) {

Callers 1

ComputeArgSignatureFunction · 0.85

Calls 1

StrAppendFunction · 0.50

Tested by

no test coverage detected