MCPcopy Create free account
hub / github.com/pytorch/executorch / prepend

Function prepend

util/collect_env.py:636–639  ·  view source on GitHub ↗
(text, tag="[prepend]")

Source from the content-addressed store, hash-verified

634 return dct
635
636 def prepend(text, tag="[prepend]"):
637 lines = text.split("\n")
638 updated_lines = [tag + line for line in lines]
639 return "\n".join(updated_lines)
640
641 def replace_if_empty(text, replacement="No relevant packages"):
642 if text is not None and len(text) == 0:

Callers 2

gen_tfliteMethod · 0.85
pretty_strFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected