MCPcopy Create free account
hub / github.com/tensorflow/lingvo / _QuoteString

Function _QuoteString

lingvo/core/hyperparams.py:60–79  ·  view source on GitHub ↗

Quotes a string with appropriate quotes and escaping. This performs lite escaping by choosing enclosing quotation marks that would escape the least (either single or double quotes) and escaping those quotes and the backslash. Note that this does not escape newlines. If the string contains e

(s)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__repr__Method · 0.85
_VisitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…